diff --git a/web/utils/site.py b/web/utils/site.py index 3b6b9af5f..f4d9b6117 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -2248,13 +2248,16 @@ export PATH mw.restartWeb() return mw.returnData(True, '证书已更新!', result) - def createAcme(self, site_name, domains,force,renew, apply_type, dnspai, email, wildcard_domain): + def createAcme(self, site_name, domains, force, renew, apply_type, dnspai, email, wildcard_domain): domains = json.loads(domains) if len(domains) < 1: return mw.returnData(False, '请选择域名') if email.strip() != '': thisdb.setOption('ssl_email', email) + if email.strip() == '': + email = mw.getRandomString(10)+"."+mw.getRandomString(3) + '@google.com' + # 检测acme是否安装 acme_dir = mw.getAcmeDir() if not os.path.exists(acme_dir):