|
|
@ -501,10 +501,9 @@ class config_api: |
|
|
|
if(isError != True): |
|
|
|
if(isError != True): |
|
|
|
mw.restoreFile(dst_panel_path) |
|
|
|
mw.restoreFile(dst_panel_path) |
|
|
|
return mw.returnData(False, '证书错误: <br><a style="color:red;">' + isError.replace("\n", '<br>') + '</a>') |
|
|
|
return mw.returnData(False, '证书错误: <br><a style="color:red;">' + isError.replace("\n", '<br>') + '</a>') |
|
|
|
|
|
|
|
|
|
|
|
except Exception as ex: |
|
|
|
except Exception as ex: |
|
|
|
return mw.returnJson(False, '开启失败:' + str(ex)) |
|
|
|
return mw.returnJson(False, '开启失败:' + str(ex)) |
|
|
|
|
|
|
|
mw.restartWeb() |
|
|
|
return mw.returnJson(True, '开启成功,请使用https协议访问面板!') |
|
|
|
return mw.returnJson(True, '开启成功,请使用https协议访问面板!') |
|
|
|
|
|
|
|
|
|
|
|
def getApi(self): |
|
|
|
def getApi(self): |
|
|
|