From 9004c31f67b141d9078f164037f36f5337ecec9c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 2 Jul 2024 10:17:41 +0800 Subject: [PATCH] =?UTF-8?q?add=20workflow=20=E5=A4=A9=E6=B6=A6Smart-ccc?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E6=95=B0=E6=8D=AE,dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../smart_ccc/获取工单记录列表/tickets_list_feign.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/workflow/TK_Cust/smart_ccc/获取工单记录列表/tickets_list_feign.py b/dev/workflow/TK_Cust/smart_ccc/获取工单记录列表/tickets_list_feign.py index 7ada691..fc85d75 100644 --- a/dev/workflow/TK_Cust/smart_ccc/获取工单记录列表/tickets_list_feign.py +++ b/dev/workflow/TK_Cust/smart_ccc/获取工单记录列表/tickets_list_feign.py @@ -174,7 +174,8 @@ if __name__ == "__main__": resL = request_data_signature_post() print(resL) if 'error' in resL: - print(f'请求工单列表失败,失败原因:{resL['error']}') + + print(f'请求工单列表失败,失败原因:{resL["error"]}'') else: dataList = resL['tickets'] load_data_to_db(dataList) @@ -185,14 +186,14 @@ if __name__ == "__main__": id = data['id'] resD = request_data_signature_get(id) if 'error' in resD: - print(f'请求工单详情(id:{id})失败,错误信息:{resD['error']}') + print(f"请求工单详情(id:{id})失败,错误信息:{resD['error']}") load_detail_exp_to_db(id) else: ids.push(id) dataList = resL['ticketDetail'] detailDataList.push(dataList) except Exception as e: - print(f'请求工单详情(id:{data['id']})失败, 错误信息:{e}') + print(f'请求工单详情(id:{data["id"]})失败, 错误信息:{e}') load_detail_exp_to_db(data['id']) load_detail_data_to_db(ids,detailDataList) print(f'{formatted2_previous_hour(0)}请求工单信息结束') \ No newline at end of file