|
|
@ -83,7 +83,7 @@ def getHomePage(): |
|
|
|
cfg = getCfg() |
|
|
|
cfg = getCfg() |
|
|
|
auth = cfg['username']+':'+cfg['password'] |
|
|
|
auth = cfg['username']+':'+cfg['password'] |
|
|
|
rand_path = cfg['path'] |
|
|
|
rand_path = cfg['path'] |
|
|
|
url = 'http://' + auth + '@' + ip + ':' + port + '/' + rand_path + '/index.php' |
|
|
|
url = 'http://' + auth + '@' + ip + ':' + port + '/' + rand_path + '/templates/login.php' |
|
|
|
return mw.returnJson(True, 'OK', url) |
|
|
|
return mw.returnJson(True, 'OK', url) |
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|
return mw.returnJson(False, '插件未启动!') |
|
|
|
return mw.returnJson(False, '插件未启动!') |
|
|
|