This commit is contained in:
yumoqing 2021-03-05 17:26:42 +08:00
parent 3580406e13
commit 69f18111df

View File

@ -42,12 +42,6 @@ class ServerInfo:
self.publickey = None self.publickey = None
self.authCode = None self.authCode = None
def realurl(url):
if url.startswith('https://') or url.startswith('http://'):
return url
config = getConfig()
return '%s%s' % (config.uihome, url)
def getServerPK(self): def getServerPK(self):
config = getConfig() config = getConfig()
url = '%s%s' % (config.uihome, config.publickey_url) url = '%s%s' % (config.uihome, config.publickey_url)
@ -105,6 +99,12 @@ class BlocksApp(App):
return Label(text='error') return Label(text='error')
return x return x
def realurl(self, url):
if url.startswith('https://') or url.startswith('http://'):
return url
config = getConfig()
return '%s%s' % (config.uihome, url)
def get_user_data_path(self): def get_user_data_path(self):
if platform == 'android': if platform == 'android':
Environment = autoclass('android.os.Environment') Environment = autoclass('android.os.Environment')