pull/109/head
midoks 3 years ago
parent b4fffc9c3a
commit 8fb3753981
  1. 5
      class/core/mw.py
  2. 4
      class/core/site_api.py

@ -177,7 +177,6 @@ def md5(str):
m.update(str.encode("utf-8"))
return m.hexdigest()
except Exception as ex:
print(ex)
return False
@ -284,7 +283,6 @@ def readFile(filename):
fp.close()
return fBody
except Exception as e:
#print('readFile:', e)
return False
@ -312,7 +310,7 @@ def writeLog(type, logMsg, args=()):
data = (type, logMsg, mDate)
result = sql.table('logs').add('type,log,addtime', data)
except Exception as e:
print(e)
pass
def writeFile(filename, str):
@ -539,7 +537,6 @@ def downloadFile(url, filename):
def downloadHook(count, blockSize, totalSize):
speed = {'total': totalSize, 'block': blockSize, 'count': count}
print(speed)
print('%02d%%' % (100.0 * count * blockSize / totalSize))

@ -648,8 +648,8 @@ class site_api:
# print home_cert
cmd = 'export ACCOUNT_EMAIL=' + email + ' && ' + execStr
print(domains)
print(cmd)
# print(domains)
# print(cmd)
result = mw.execShell(cmd)
if not os.path.exists(home_cert.replace("\*", "*")):

Loading…
Cancel
Save