mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:39:25 +08:00
update
This commit is contained in:
@@ -1324,6 +1324,8 @@ fullchain.pem 粘贴到证书输入框
|
||||
else:
|
||||
site_name = self.getSiteNameByDomains(domains)
|
||||
is_rep = api.httpToHttps(site_name)
|
||||
api.operateRedirectConf(site_name,'stop')
|
||||
mw.restartWeb()
|
||||
try:
|
||||
index = self.createOrder(
|
||||
domains,
|
||||
@@ -1375,6 +1377,9 @@ fullchain.pem 粘贴到证书输入框
|
||||
is_rep_decode = json.loads(is_rep)
|
||||
if is_rep_decode['status']:
|
||||
api.closeToHttps(site_name)
|
||||
|
||||
api.operateRedirectConf(site_name,'start')
|
||||
mw.restartWeb()
|
||||
writeLog("-" * 70)
|
||||
return cert
|
||||
|
||||
|
||||
@@ -1786,8 +1786,7 @@ class site_api:
|
||||
data.append({"r_from": _from, "type": _typeCode, "r_type": _rTypeCode,
|
||||
"r_to": _to, 'keep_path': _keepPath, 'id': _id})
|
||||
mw.writeFile(data_path, json.dumps(data))
|
||||
mw.writeFile(
|
||||
"{}/{}.conf".format(self.getRedirectPath(_siteName), _id), file_content)
|
||||
mw.writeFile("{}/{}.conf".format(self.getRedirectPath(_siteName), _id), file_content)
|
||||
|
||||
self.operateRedirectConf(_siteName, 'start')
|
||||
mw.restartWeb()
|
||||
|
||||
Reference in New Issue
Block a user