From 08b502f2cec52a408d2a772082616714f17b2b1f Mon Sep 17 00:00:00 2001 From: root <root@43b768378738> Date: Fri, 2 Aug 2024 18:19:29 +0800 Subject: [PATCH] =?UTF-8?q?add=20workflow=20=E5=A4=A9=E6=B6=A6Smart-ccc?= =?UTF-8?q?=E9=80=9A=E8=AF=9D=E8=AE=B0=E5=BD=95,dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../查询客户来电记录列表/cc_cdr_ib_list_feign.py | 6 +++--- .../查询座席接听记录列表/cc_cdr_ib_agent_list_feign.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dev/workflow/TK_Cust/smart_ccc_cdr/查询客户来电记录列表/cc_cdr_ib_list_feign.py b/dev/workflow/TK_Cust/smart_ccc_cdr/查询客户来电记录列表/cc_cdr_ib_list_feign.py index 304e4a0..924db33 100644 --- a/dev/workflow/TK_Cust/smart_ccc_cdr/查询客户来电记录列表/cc_cdr_ib_list_feign.py +++ b/dev/workflow/TK_Cust/smart_ccc_cdr/查询客户来电记录列表/cc_cdr_ib_list_feign.py @@ -65,8 +65,8 @@ def build_query_string(params): def request_data_signature_get(offset, pageSize): print(f'开始请求客服来电记录数据') url='https://api-bj.clink.cn/cc/list_cdr_ib' - # param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(1),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177'} - param={'Timestamp':current_time_utc,'Expires':86400,'startTime':1712332800,'startTimeEnd':1714838400,'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177',,'limit':pageSize,'offset':offset} + param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(48),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset} + # param={'Timestamp':current_time_utc,'Expires':86400,'startTime':1712332800,'startTimeEnd':1714838400,'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset} print(f'param: {param}') url_path = build_query_string(param) @@ -130,7 +130,7 @@ if __name__ == "__main__": resL = request_data_signature_get(offset, pageSize) list = list + resL['cdrIbAgent'] page = resL['pageNumber'] - print(f'总计请求{i}次,此次外呼记录数为{len(list)}') + print(f'总计请求{i}次,此次客户来电数为{len(list)}') load_data_to_db(dataList) print(f'{formatted2_previous_hour(0)}请求客户来电记录结束') \ No newline at end of file diff --git a/dev/workflow/TK_Cust/smart_ccc_cdr/查询座席接听记录列表/cc_cdr_ib_agent_list_feign.py b/dev/workflow/TK_Cust/smart_ccc_cdr/查询座席接听记录列表/cc_cdr_ib_agent_list_feign.py index 30fd3c3..67e5209 100644 --- a/dev/workflow/TK_Cust/smart_ccc_cdr/查询座席接听记录列表/cc_cdr_ib_agent_list_feign.py +++ b/dev/workflow/TK_Cust/smart_ccc_cdr/查询座席接听记录列表/cc_cdr_ib_agent_list_feign.py @@ -65,8 +65,8 @@ def build_query_string(params): def request_data_signature_get(offset, pageSize): print(f'开始请求座席接听记录数据') url='https://api-bj.clink.cn/cc/list_cdr_ib_agent' - # param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(1),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177'} - param={'Timestamp':current_time_utc,'Expires':86400,'startTime':1712332800,'startTimeEnd':1714838400,'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177',,'limit':pageSize,'offset':offset} + param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(48),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset} + # param={'Timestamp':current_time_utc,'Expires':86400,'startTime':1712332800,'startTimeEnd':1714838400,'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset} print(f'param: {param}') url_path = build_query_string(param) @@ -133,6 +133,6 @@ if __name__ == "__main__": resL = request_data_signature_get(offset, pageSize) list = list + resL['cdrIbAgent'] page = resL['pageNumber'] - print(f'总计请求{i}次,此次外呼记录数为{len(list)}') + print(f'总计请求{i}次,此次座席接听数为{len(list)}') load_data_to_db(dataList) print(f'{formatted2_previous_hour(0)}请求座席接听记录结束') \ No newline at end of file