Update cert_api.py

pull/620/head
Mr Chen 10 months ago
parent b4b14d2c28
commit e8a72a0b7a
  1. 6
      class/core/cert_api.py

@ -1392,7 +1392,7 @@ fullchain.pem 粘贴到证书输入框
order_index.append(index)
else:
# 测试一天过期
start_time = time.time() - 89 * 86400
now_time = time.time()
# print(self.__config)
if not 'orders' in self.__config:
self.__config['orders'] = {}
@ -1408,8 +1408,8 @@ fullchain.pem 粘贴到证书输入框
if not 'cert_timeout' in self.__config['orders'][i]:
self.__config['orders'][i]['cert_timeout'] = int(time.time())
# print(self.__config['orders'][i]['domains'][0], self.__config['orders'][i]['cert_timeout'], start_time)
if self.__config['orders'][i]['cert_timeout'] > start_time:
# print(self.__config['orders'][i]['domains'][0], self.__config['orders'][i]['cert_timeout'], now_time)
if self.__config['orders'][i]['cert_timeout'] - now_time > 1*86400:
msg = "|-本次跳过域名: {},未过期!".format(self.__config['orders'][i]['domains'][0])
writeLog(msg)
continue

Loading…
Cancel
Save