add workflow 天润Smart-ccc工单数据,dev
This commit is contained in:
parent
56da9aa434
commit
93ff830ba4
|
@ -84,7 +84,7 @@ def request_data_signature_post():
|
|||
jsonData = json.dumps(body)
|
||||
print(f'body: {jsonData}')
|
||||
dataReqL=requests.post(url,headers=header,data=jsonData)
|
||||
|
||||
|
||||
i = 0
|
||||
while 'error' in dataReqL and i < 5:
|
||||
time.sleep(1)
|
||||
|
@ -194,9 +194,9 @@ if __name__ == "__main__":
|
|||
print(f"请求工单详情(id:{id})失败,错误信息:{error}")
|
||||
load_detail_exp_to_db(id)
|
||||
else:
|
||||
ids.push(id)
|
||||
ids.append(id)
|
||||
dataList = resL['ticketDetail']
|
||||
detailDataList.push(dataList)
|
||||
detailDataList.append(dataList)
|
||||
except Exception as e:
|
||||
print(f'请求工单详情(id:{id})失败, 错误信息:{e}')
|
||||
load_detail_exp_to_db(data['id'])
|
||||
|
|
Loading…
Reference in New Issue