add workflow 天润Smart-ccc会话数据,dev

This commit is contained in:
root 2025-02-20 10:23:56 +08:00
parent 2db9155c97
commit 666bac3025
1 changed files with 4 additions and 4 deletions

View File

@ -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