add workflow 天润Smart-ccc通话记录,dev
This commit is contained in:
parent
e7ed131c02
commit
226a5f3e0c
|
@ -187,7 +187,7 @@ if __name__ == "__main__":
|
|||
ids = []
|
||||
for data in dataList:
|
||||
try:
|
||||
id = data['id']
|
||||
id = data['mainUniqueId']
|
||||
resD = request_detail_signature_get(id)
|
||||
#print(f"请求工单详情结束")
|
||||
if 'cdrObDetails' in resD:
|
||||
|
@ -197,11 +197,11 @@ if __name__ == "__main__":
|
|||
detailDataList = detailDataList + dataList
|
||||
else:
|
||||
error = resD['error']
|
||||
print(f"请求外呼详情(id:{id})失败,错误信息:{error}")
|
||||
print(f"请求外呼详情(mainUniqueId:{id})失败,错误信息:{error}")
|
||||
load_detail_exp_to_db(id)
|
||||
except Exception as e:
|
||||
print(f'请求外呼详情(id:{id})异常, )异常信息:{e}')
|
||||
load_detail_exp_to_db(data['id'])
|
||||
print(f'请求外呼详情(mainUniqueId:{id})异常, )异常信息:{e}')
|
||||
load_detail_exp_to_db(data['mainUniqueId'])
|
||||
if len(ids) > 0:
|
||||
ids_str = [str(item) for item in ids]
|
||||
load_detail_data_to_db(ids_str,detailDataList)
|
||||
|
|
Loading…
Reference in New Issue