Commit a7926a09 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

优化脚本

parent 1a312b61
......@@ -75,11 +75,17 @@ def e_login(type=1):
print(username, password)
# 获取token和projectCode
import time
i=1
while True:
if i==1000:
print('6000秒过去了,新注册的企业还未登录,检查同步是否正常')
break
try:
token,projectCode,uxid,corpId,info= login_system(username, password).get_token()
except:
print('新注册的企业登录失败,等待6秒')
time.sleep(6)
i=i+1
continue
else:
return token, projectCode, uxid, corpId, username
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment