From 666bac3025252ee103afa62a0bfe957f01b73918 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Feb 2025 10:23:56 +0800 Subject: [PATCH] =?UTF-8?q?add=20workflow=20=E5=A4=A9=E6=B6=A6Smart-ccc?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E6=95=B0=E6=8D=AE,dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../查询会话记录列表_新/chat_records_n_feign.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/workflow/TK_Cust/smart_ccc_chat/查询会话记录列表_新/chat_records_n_feign.py b/dev/workflow/TK_Cust/smart_ccc_chat/查询会话记录列表_新/chat_records_n_feign.py index 01402dd..db7b556 100644 --- a/dev/workflow/TK_Cust/smart_ccc_chat/查询会话记录列表_新/chat_records_n_feign.py +++ b/dev/workflow/TK_Cust/smart_ccc_chat/查询会话记录列表_新/chat_records_n_feign.py @@ -238,17 +238,17 @@ def fetch_records_all(d): while flag is True: i = i+1 resN = request_data_signature_post(i) - if 'records' not in resN: - error = resL['error'] + if 'data' not in resN: + error = resN['error'] print(f'请求会话列表失败,失败原因:{error}') break nextData = resN['data'] - nextList = nextData['records'] + nextList = nextData['list'] flag = nextData['hasNextPage'] if len(nextList) == 0: break list = list + nextList - if len(nextList) < 100: + if len(nextList) < 1000: break print(f'records会话记录数为:{len(list)}, 共请求{i}次会话') return list