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