add workflow 天润Smart-ccc会话数据,dev
This commit is contained in:
parent
2db9155c97
commit
666bac3025
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue