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

This commit is contained in:
root 2024-08-02 14:55:25 +08:00
parent 786d32311f
commit a59cab2f66
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ def request_data_signature_post():
print(f'开始请求工单列表数据:{formatted2_previous_hour(0)}')
url='https://api-bj.clink.cn/ticket/list_ticket'
header={'Content-Type':'application/json;charset=UTF-8'}
param={'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','Timestamp':current_time_utc,'Expires':86400}
param={'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','Timestamp':current_time_utc,'Expires':86400,'limit':100}
print(f'param: {param}')
url_path = build_query_string(param)
url_param = build_query_string(param)
@ -80,7 +80,7 @@ def request_data_signature_post():
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(1),'updateTimeEnd':formatted2_previous_hour(0)}
body={'endTime':formatted2_previous_hour(0),'startTime':'1900-01-01 00:00:00','updateTimeStart':formatted2_previous_hour(48),'updateTimeEnd':formatted2_previous_hour(0)}
jsonData = json.dumps(body)
print(f'body: {jsonData}')
dataReqL=requests.post(url,headers=header,data=jsonData)