add workflow 天润Smart-ccc客户数据,dev

This commit is contained in:
root 2024-07-02 12:15:25 +08:00
parent 645d6eb781
commit dc52287cd1
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ if __name__ == "__main__":
id=item['value'] id=item['value']
print(f'客户id:{id},开始请求数据') print(f'客户id:{id},开始请求数据')
resD = request_detail_signature_post(id) resD = request_detail_signature_post(id)
print(f'请求数据结束{id},结果:{resD}') print(f'请求数据结束{id}')
if 'customer' in resD: if 'customer' in resD:
ids.append(id) ids.append(id)
dataList = resD['customer'] dataList = resD['customer']
@ -212,7 +212,7 @@ if __name__ == "__main__":
print(f"请求客户资料详情id:{id})失败,错误信息:{error}") print(f"请求客户资料详情id:{id})失败,错误信息:{error}")
load_detail_exp_to_db(id) load_detail_exp_to_db(id)
except Exception as e: except Exception as e:
print(f'请求客户资料详情id:{id})异常, 异常信息:{e}') print(f'请求客户资料详情id:{id})异常,异常信息:{e}')
load_detail_exp_to_db(data['id']) load_detail_exp_to_db(data['id'])
print(f'444:{ids}') print(f'444:{ids}')
if len(ids) > 0: if len(ids) > 0: