Commit 55e9bd53 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

调整产品导入脚本

parent 182b5b4c
......@@ -38,12 +38,12 @@ def h_login():
password = commonFuc().get_business_data(module, "password")
print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
import time
while True:
import time
time.sleep(6)
try:
token,projectCode,uxid,corpId,info= login_system(username, password).get_token()
except:
time.sleep(6)
continue
else:
return token,projectCode,uxid,corpId,h_name
......
......@@ -34,12 +34,12 @@ def e_login():
password = commonFuc().get_business_data(module, "password")
print(username, password)
# 获取token和projectCode
import time
while True:
import time
time.sleep(6)
try:
token,projectCode,uxid,corpId,info= login_system(username, password).get_token()
except:
time.sleep(6)
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