add workflow 天润Smart-ccc工单数据,dev

This commit is contained in:
root 2024-08-02 18:55:29 +08:00
parent a34a1c7040
commit 72ec026e81
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ def request_data_signature_post(offset, pageSize):
print(f'url: {url}')
# body={'endTime':formatted2_previous_hour(0),'startTime':'2024-01-01 00:00:00'}
body={'endTime':formatted2_previous_hour(0),'startTime':'1900-01-01 00:00:00','updateTimeStart':formatted2_previous_hour(48),'updateTimeEnd':formatted2_previous_hour(0)}
body={'endTime':formatted2_previous_hour(0),'startTime':'1900-01-01 00:00:00','updateTimeStart':formatted2_previous_hour(1),'updateTimeEnd':formatted2_previous_hour(0)}
jsonData = json.dumps(body)
print(f'body: {jsonData}')
dataReqL=requests.post(url,headers=header,data=jsonData)
@ -180,7 +180,7 @@ def load_detail_exp_to_db(id):
if __name__ == "__main__":
print(f'{formatted2_previous_hour(0)}开始请求工单信息')
offset = 0
pageSize = 10
pageSize = 100
resL = request_data_signature_post(offset,pageSize)
print(resL)
if 'error' in resL: