245 lines
37 KiB
Plaintext
245 lines
37 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"metadata": {},
|
|
"cell_type": "markdown",
|
|
"source": "## 查询流程实例信息",
|
|
"id": "cdd13ef0e75e3688"
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"id": "initial_id",
|
|
"metadata": {
|
|
"collapsed": true,
|
|
"ExecuteTime": {
|
|
"end_time": "2025-07-22T05:53:17.122992Z",
|
|
"start_time": "2025-07-22T05:53:13.327034Z"
|
|
}
|
|
},
|
|
"source": [
|
|
"import datetime\n",
|
|
"import os\n",
|
|
"import time\n",
|
|
"import requests\n",
|
|
"from api import API\n",
|
|
"import re\n",
|
|
"from back_ground_module import CommonModule\n",
|
|
"import pandas as pd\n",
|
|
"from log_config import configure_task_logger, configure_error_task_logger\n",
|
|
"from tqdm import tqdm\n",
|
|
"\n",
|
|
"api_instance = API()\n",
|
|
"common_module = CommonModule()\n",
|
|
"# start_time = datetime.datetime.now()\n",
|
|
"\n",
|
|
"df = pd.read_excel(r\"C:\\Users\\Administrator.DESKTOP-7IC2USJ\\Downloads\\经销商-新签服务单_20250722135012.xlsx\",sheet_name=\"经销商-新签服务单\")\n",
|
|
"for index,row in tqdm(df.iterrows()):\n",
|
|
" data_id = row[\"data_id\"]\n",
|
|
" payload = {\n",
|
|
" \"data_id\": data_id\n",
|
|
" }\n",
|
|
" res = api_instance.workflow_instance_get(payload)\n",
|
|
" task_list = res.get(\"tasks\")\n",
|
|
" finish_time = \"\"\n",
|
|
" for task in task_list:\n",
|
|
" if task.get(\"title\") == \"审核环节\":\n",
|
|
" finish_time = task.get(\"finish_time\")\n",
|
|
" break\n",
|
|
" \n",
|
|
" payload = {\n",
|
|
" \"api_key\":\"673d8427549d00c3d753c530\",\n",
|
|
" \"entry_id\":\"67c80eb3d2af9b9821928f45\", # 日常回访\n",
|
|
" \"data_id\": data_id,\n",
|
|
" \"data\":{\n",
|
|
" \"_widget_1753162835213\": {\"value\": finish_time}\n",
|
|
" }\n",
|
|
" }\n",
|
|
" api_instance.entry_data_update(payload)\n",
|
|
"\n",
|
|
" "
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"1it [00:00, 2.78it/s]"
|
|
]
|
|
},
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"返回结果: {'data': {'creator': {'name': '汤旭东', 'username': '01223804125327494707', 'status': 1, 'type': 0, 'departments': [1], 'integrate_id': '01223804125327494707'}, 'updater': {'name': 'F6汽车科技', 'username': '#admin', 'status': 1, 'type': 0}, 'deleter': None, 'createTime': '2025-07-16T08:14:19.425Z', 'updateTime': '2025-07-22T05:53:12.753Z', 'deleteTime': None, 'flowState': 1, '_widget_1742197585104': 'L3', '_widget_1741164213155': '众鑫汽车商贸', '_widget_1741164213151': '众鑫汽车商贸', '_widget_1741165503706': '王碧耀', '_widget_1741165503711': '15827016672', '_widget_1741165503710': '30', '_widget_1741164213149': '', '_widget_1741164213159': '', '_widget_1741164213152': '11240984669918402077', '_widget_1741164213171': '2025-07-15T16:00:00.000Z', '_widget_1741164213172': {'province': '湖北省', 'city': '黄冈市', 'district': '蕲春县', 'detail': '漕河镇夏漕社区新村三巷46号'}, '_widget_1741165503708': '15827016672', '_widget_1741165503709': '2028-07-15T16:00:00.000Z', '_widget_1741165503714': '已开通', '_widget_1741165503716': {'name': '陈煜', 'username': '05463054031221652', 'status': 1, 'type': 0, 'departments': [122503482], 'integrate_id': '05463054031221652'}, '_widget_1741165503718': {'name': '陈煜', 'username': '05463054031221652', 'status': 1, 'type': 0, 'departments': [122503482], 'integrate_id': '05463054031221652'}, '_widget_1741165503719': {'name': '金华斌', 'username': '3704680936560271', 'status': 1, 'type': 0, 'departments': [122503482], 'integrate_id': '3704680936560271'}, '_widget_1741165503717': {'name': '景东强', 'username': '232229053125844557', 'status': 1, 'type': 0, 'departments': [122472424, 122503482], 'integrate_id': '232229053125844557'}, '_widget_1741165503721': {'name': '陈煜', 'username': '05463054031221652', 'status': 1, 'type': 0, 'departments': [122503482], 'integrate_id': '05463054031221652'}, '_widget_1742200372555': '是', '_widget_1742268351775': '', '_widget_1742200372553': '是', '_widget_1742268351776': '', '_widget_1742200372634': '是', '_widget_1742268351778': '', '_widget_1742260928184': '是', '_widget_1742268351777': '', '_widget_1742200372559': '是', '_widget_1742268351779': '', '_widget_1749717287367': '是', '_widget_1749717287369': '已培训', '_widget_1749717287373': '是', '_widget_1749717287375': '已补货', '_widget_1742200372561': '是', '_widget_1742268351780': '', '_widget_1743148999298': '是', '_widget_1743148999308': '', '_widget_1743148999300': '是', '_widget_1743148999309': '', '_widget_1743148999310': [{'name': '99a13b9a-e1d1-462b-971d-d552de657d7d.jpeg', 'size': 182526, 'mime': 'image/jpeg', 'url': 'https://files.jiandaoyun.com/99a13b9a-e1d1-462b-971d-d552de657d7d?attname=99a13b9a-e1d1-462b-971d-d552de657d7d.jpeg&e=1754459999&token=bM7UwVPyBBdPaleBZt21SWKzMylqPUpn-05jZlas:K4aStbwVjNVyYAjv58p-d7VZ2GU='}], '_widget_1743500862664': '', '_widget_1753162835213': '2025-07-21T01:34:59.839Z', '_widget_1753163217437': None, '_id': '68775f5b8b7b2466c3ec4a90', 'appId': '673d8427549d00c3d753c530', 'entryId': '67c80eb3d2af9b9821928f45'}}\n",
|
|
"68775f5b8b7b2466c3ec4a90\n"
|
|
]
|
|
},
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"2it [00:00, 3.18it/s]"
|
|
]
|
|
},
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"返回结果: {'data': {'creator': {'name': '汤旭东', 'username': '01223804125327494707', 'status': 1, 'type': 0, 'departments': [1], 'integrate_id': '01223804125327494707'}, 'updater': {'name': 'F6汽车科技', 'username': '#admin', 'status': 1, 'type': 0}, 'deleter': None, 'createTime': '2025-07-03T01:25:37.850Z', 'updateTime': '2025-07-22T05:53:13.057Z', 'deleteTime': None, 'flowState': 0, '_widget_1742197585104': 'L7', '_widget_1741164213155': '山东航光汽配', '_widget_1741164213151': '山东航光汽配', '_widget_1741165503706': '王富彦', '_widget_1741165503711': '15066965289', '_widget_1741165503710': '100', '_widget_1741164213149': '', '_widget_1741164213159': '', '_widget_1741164213152': '11240984669918398685', '_widget_1741164213171': '2025-06-29T16:00:00.000Z', '_widget_1741164213172': {'province': '山东省', 'city': '滨州市', 'district': '无棣县', 'detail': '棣新一路物资局南原胜达编制袋厂院内'}, '_widget_1741165503708': '15066965289', '_widget_1741165503709': '2029-06-29T16:00:00.000Z', '_widget_1741165503714': '已开通', '_widget_1741165503716': {'name': '邵宝振', 'username': '032861373036352679', 'status': 1, 'type': 0, 'departments': [122333676], 'integrate_id': '032861373036352679'}, '_widget_1741165503718': {'name': '邵宝振', 'username': '032861373036352679', 'status': 1, 'type': 0, 'departments': [122333676], 'integrate_id': '032861373036352679'}, '_widget_1741165503719': {'name': '王斌', 'username': '1253235059942945', 'status': 1, 'type': 0, 'departments': [122333676], 'integrate_id': '1253235059942945'}, '_widget_1741165503717': {'name': '关磊', 'username': '1218085201677303', 'status': 1, 'type': 0, 'departments': [122388502, 122333676], 'integrate_id': '1218085201677303'}, '_widget_1741165503721': {'name': '邵宝振', 'username': '032861373036352679', 'status': 1, 'type': 0, 'departments': [122333676], 'integrate_id': '032861373036352679'}, '_widget_1742200372555': '', '_widget_1742268351775': '', '_widget_1742200372553': '', '_widget_1742268351776': '', '_widget_1742200372634': '', '_widget_1742268351778': '', '_widget_1742260928184': '', '_widget_1742268351777': '', '_widget_1742200372559': '', '_widget_1742268351779': '', '_widget_1749717287367': '', '_widget_1749717287369': '', '_widget_1749717287373': '', '_widget_1749717287375': '', '_widget_1742200372561': '', '_widget_1742268351780': '', '_widget_1743148999298': '', '_widget_1743148999308': '', '_widget_1743148999300': '', '_widget_1743148999309': '', '_widget_1743148999310': [], '_widget_1743500862664': '', '_widget_1753162835213': None, '_widget_1753163217437': None, '_id': '6865dc11b58f0f4181829c5d', 'appId': '673d8427549d00c3d753c530', 'entryId': '67c80eb3d2af9b9821928f45'}}\n",
|
|
"6865dc11b58f0f4181829c5d\n"
|
|
]
|
|
},
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"3it [00:01, 2.70it/s]"
|
|
]
|
|
},
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"返回结果: {'data': {'creator': {'name': '汤旭东', 'username': '01223804125327494707', 'status': 1, 'type': 0, 'departments': [1], 'integrate_id': '01223804125327494707'}, 'updater': {'name': 'F6汽车科技', 'username': '#admin', 'status': 1, 'type': 0}, 'deleter': None, 'createTime': '2025-06-24T05:46:43.629Z', 'updateTime': '2025-07-22T05:53:13.440Z', 'deleteTime': None, 'flowState': 1, '_widget_1742197585104': 'L3', '_widget_1741164213155': '意邦人汽配', '_widget_1741164213151': '意邦人汽配', '_widget_1741165503706': '贾', '_widget_1741165503711': '13847171855', '_widget_1741165503710': '30', '_widget_1741164213149': '', '_widget_1741164213159': '', '_widget_1741164213152': '15959069092623687714', '_widget_1741164213171': '2025-06-22T16:00:00.000Z', '_widget_1741164213172': {'province': '内蒙古自治区', 'city': '呼和浩特市', 'district': '新城区', 'detail': '京源港汽配城'}, '_widget_1741165503708': '13847171855', '_widget_1741165503709': '2028-06-22T16:00:00.000Z', '_widget_1741165503714': '已开通', '_widget_1741165503716': {'name': '张宏伟', 'username': '010955014424149136', 'status': 1, 'type': 0, 'departments': [122388502], 'integrate_id': '010955014424149136'}, '_widget_1741165503718': {'name': '张宏伟', 'username': '010955014424149136', 'status': 1, 'type': 0, 'departments': [122388502], 'integrate_id': '010955014424149136'}, '_widget_1741165503719': {'name': '武宏超', 'username': '055512041727184572', 'status': 1, 'type': 0, 'departments': [122388502], 'integrate_id': '055512041727184572'}, '_widget_1741165503717': {'name': '关磊', 'username': '1218085201677303', 'status': 1, 'type': 0, 'departments': [122388502, 122333676], 'integrate_id': '1218085201677303'}, '_widget_1741165503721': {'name': '张宏伟', 'username': '010955014424149136', 'status': 1, 'type': 0, 'departments': [122388502], 'integrate_id': '010955014424149136'}, '_widget_1742200372555': '是', '_widget_1742268351775': '', '_widget_1742200372553': '是', '_widget_1742268351776': '', '_widget_1742200372634': '是', '_widget_1742268351778': '', '_widget_1742260928184': '是', '_widget_1742268351777': '', '_widget_1742200372559': '是', '_widget_1742268351779': '', '_widget_1749717287367': '是', '_widget_1749717287369': '无', '_widget_1749717287373': '是', '_widget_1749717287375': '无', '_widget_1742200372561': '否', '_widget_1742268351780': '刚上线', '_widget_1743148999298': '是', '_widget_1743148999308': '', '_widget_1743148999300': '是', '_widget_1743148999309': '', '_widget_1743148999310': [{'name': '3305da78-2d5d-4552-b44f-b0015ea98ef6.jpeg', 'size': 162918, 'mime': 'image/jpeg', 'url': 'https://files.jiandaoyun.com/3305da78-2d5d-4552-b44f-b0015ea98ef6?attname=3305da78-2d5d-4552-b44f-b0015ea98ef6.jpeg&e=1754459999&token=bM7UwVPyBBdPaleBZt21SWKzMylqPUpn-05jZlas:N5xyulWeLOZS82WD2kXWU53uX_M='}], '_widget_1743500862664': '', '_widget_1753162835213': '2025-07-11T03:39:08.277Z', '_widget_1753163217437': None, '_id': '685a3bc325d3a13ab7f63c12', 'appId': '673d8427549d00c3d753c530', 'entryId': '67c80eb3d2af9b9821928f45'}}\n",
|
|
"685a3bc325d3a13ab7f63c12\n"
|
|
]
|
|
},
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"4it [00:01, 2.49it/s]"
|
|
]
|
|
},
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"返回结果: {'data': {'creator': {'name': '汤旭东', 'username': '01223804125327494707', 'status': 1, 'type': 0, 'departments': [1], 'integrate_id': '01223804125327494707'}, 'updater': {'name': 'F6汽车科技', 'username': '#admin', 'status': 1, 'type': 0}, 'deleter': None, 'createTime': '2025-06-24T05:46:34.731Z', 'updateTime': '2025-07-22T05:53:13.886Z', 'deleteTime': None, 'flowState': 1, '_widget_1742197585104': 'L3', '_widget_1741164213155': '启腾汽配', '_widget_1741164213151': '启腾汽配', '_widget_1741165503706': '赵广文', '_widget_1741165503711': '18653814661', '_widget_1741165503710': '30', '_widget_1741164213149': '', '_widget_1741164213159': '', '_widget_1741164213152': '15959288717181464648', '_widget_1741164213171': '2025-06-23T16:00:00.000Z', '_widget_1741164213172': {'province': '山东省', 'city': '泰安市', 'district': '泰山区', 'detail': '上高街道东湖路与唐訾路交叉口东200米路南院里'}, '_widget_1741165503708': '18653814661', '_widget_1741165503709': '2028-06-23T16:00:00.000Z', '_widget_1741165503714': '已开通', '_widget_1741165503716': {'name': '邵宝振', 'username': '032861373036352679', 'status': 1, 'type': 0, 'departments': [122333676], 'integrate_id': '032861373036352679'}, '_widget_1741165503718': {'name': '邵宝振', 'username': '032861373036352679', 'status': 1, 'type': 0, 'departments': [122333676], 'integrate_id': '032861373036352679'}, '_widget_1741165503719': {'name': '王斌', 'username': '1253235059942945', 'status': 1, 'type': 0, 'departments': [122333676], 'integrate_id': '1253235059942945'}, '_widget_1741165503717': {'name': '关磊', 'username': '1218085201677303', 'status': 1, 'type': 0, 'departments': [122388502, 122333676], 'integrate_id': '1218085201677303'}, '_widget_1741165503721': {'name': '邵宝振', 'username': '032861373036352679', 'status': 1, 'type': 0, 'departments': [122333676], 'integrate_id': '032861373036352679'}, '_widget_1742200372555': '是', '_widget_1742268351775': '', '_widget_1742200372553': '是', '_widget_1742268351776': '', '_widget_1742200372634': '是', '_widget_1742268351778': '', '_widget_1742260928184': '是', '_widget_1742268351777': '', '_widget_1742200372559': '是', '_widget_1742268351779': '', '_widget_1749717287367': '是', '_widget_1749717287369': '无', '_widget_1749717287373': '是', '_widget_1749717287375': '无', '_widget_1742200372561': '是', '_widget_1742268351780': '', '_widget_1743148999298': '是', '_widget_1743148999308': '', '_widget_1743148999300': '是', '_widget_1743148999309': '', '_widget_1743148999310': [{'name': '51627494-4376-4151-8f26-2e4604e47695.jpeg', 'size': 303502, 'mime': 'image/jpeg', 'url': 'https://files.jiandaoyun.com/51627494-4376-4151-8f26-2e4604e47695?attname=51627494-4376-4151-8f26-2e4604e47695.jpeg&e=1754459999&token=bM7UwVPyBBdPaleBZt21SWKzMylqPUpn-05jZlas:o2WxoWxrw1hah9wvNRcGB9XSaxk='}], '_widget_1743500862664': '', '_widget_1753162835213': '2025-07-07T02:02:50.316Z', '_widget_1753163217437': None, '_id': '685a3bbaeca9b41ec24e3a14', 'appId': '673d8427549d00c3d753c530', 'entryId': '67c80eb3d2af9b9821928f45'}}\n",
|
|
"685a3bbaeca9b41ec24e3a14\n"
|
|
]
|
|
},
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"5it [00:01, 2.70it/s]"
|
|
]
|
|
},
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"返回结果: {'data': {'creator': {'name': '汤旭东', 'username': '01223804125327494707', 'status': 1, 'type': 0, 'departments': [1], 'integrate_id': '01223804125327494707'}, 'updater': {'name': 'F6汽车科技', 'username': '#admin', 'status': 1, 'type': 0}, 'deleter': None, 'createTime': '2025-06-19T06:01:16.727Z', 'updateTime': '2025-07-22T05:53:14.253Z', 'deleteTime': None, 'flowState': 1, '_widget_1742197585104': 'L3', '_widget_1741164213155': '喆冠汽车配件', '_widget_1741164213151': '喆冠汽车配件', '_widget_1741165503706': '呙总', '_widget_1741165503711': '13851760545', '_widget_1741165503710': '30', '_widget_1741164213149': '', '_widget_1741164213159': '', '_widget_1741164213152': '11240984669918396023', '_widget_1741164213171': '2025-06-18T16:00:00.000Z', '_widget_1741164213172': {'province': '江苏省', 'city': '扬州市', 'district': '仪征市', 'detail': '工农北路'}, '_widget_1741165503708': '13851760545', '_widget_1741165503709': '2028-06-29T16:00:00.000Z', '_widget_1741165503714': '已开通', '_widget_1741165503716': {'name': '魏延楠', 'username': '162067282938988985', 'status': 1, 'type': 0, 'departments': [122314630], 'integrate_id': '162067282938988985'}, '_widget_1741165503718': {'name': '魏延楠', 'username': '162067282938988985', 'status': 1, 'type': 0, 'departments': [122314630], 'integrate_id': '162067282938988985'}, '_widget_1741165503719': {'name': '霍创业', 'username': '110740004537832492', 'status': 1, 'type': 0, 'departments': [122314630], 'integrate_id': '110740004537832492'}, '_widget_1741165503717': {'name': '肖军', 'username': '311003461041349', 'status': 1, 'type': 0, 'departments': [122314630, 122323520], 'integrate_id': '311003461041349'}, '_widget_1741165503721': {'name': '魏延楠', 'username': '162067282938988985', 'status': 1, 'type': 0, 'departments': [122314630], 'integrate_id': '162067282938988985'}, '_widget_1742200372555': '是', '_widget_1742268351775': '', '_widget_1742200372553': '是', '_widget_1742268351776': '', '_widget_1742200372634': '是', '_widget_1742268351778': '', '_widget_1742260928184': '是', '_widget_1742268351777': '', '_widget_1742200372559': '是', '_widget_1742268351779': '', '_widget_1749717287367': '是', '_widget_1749717287369': '已培训', '_widget_1749717287373': '是', '_widget_1749717287375': '已补货', '_widget_1742200372561': '是', '_widget_1742268351780': '', '_widget_1743148999298': '是', '_widget_1743148999308': '', '_widget_1743148999300': '是', '_widget_1743148999309': '', '_widget_1743148999310': [{'name': '63049e74-1e34-4f89-b4d4-ca559bc6aa7a.jpeg', 'size': 345747, 'mime': 'image/jpeg', 'url': 'https://files.jiandaoyun.com/63049e74-1e34-4f89-b4d4-ca559bc6aa7a?attname=63049e74-1e34-4f89-b4d4-ca559bc6aa7a.jpeg&e=1754459999&token=bM7UwVPyBBdPaleBZt21SWKzMylqPUpn-05jZlas:TqmjjZ0MyOTW2QySFjUxvf7ggjo='}], '_widget_1743500862664': '', '_widget_1753162835213': '2025-07-08T01:56:47.486Z', '_widget_1753163217437': None, '_id': '6853a7ac02fdcd9eb44cf2e1', 'appId': '673d8427549d00c3d753c530', 'entryId': '67c80eb3d2af9b9821928f45'}}\n",
|
|
"6853a7ac02fdcd9eb44cf2e1\n"
|
|
]
|
|
},
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"5it [00:02, 1.83it/s]\n"
|
|
]
|
|
},
|
|
{
|
|
"ename": "KeyboardInterrupt",
|
|
"evalue": "",
|
|
"output_type": "error",
|
|
"traceback": [
|
|
"\u001B[1;31m---------------------------------------------------------------------------\u001B[0m",
|
|
"\u001B[1;31mKeyboardInterrupt\u001B[0m Traceback (most recent call last)",
|
|
"Cell \u001B[1;32mIn[2], line 38\u001B[0m\n\u001B[0;32m 28\u001B[0m \u001B[38;5;28;01mbreak\u001B[39;00m\n\u001B[0;32m 30\u001B[0m payload \u001B[38;5;241m=\u001B[39m {\n\u001B[0;32m 31\u001B[0m \u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mapi_key\u001B[39m\u001B[38;5;124m\"\u001B[39m:\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124m673d8427549d00c3d753c530\u001B[39m\u001B[38;5;124m\"\u001B[39m,\n\u001B[0;32m 32\u001B[0m \u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mentry_id\u001B[39m\u001B[38;5;124m\"\u001B[39m:\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124m67c80eb3d2af9b9821928f45\u001B[39m\u001B[38;5;124m\"\u001B[39m, \u001B[38;5;66;03m# 日常回访\u001B[39;00m\n\u001B[1;32m (...)\u001B[0m\n\u001B[0;32m 36\u001B[0m }\n\u001B[0;32m 37\u001B[0m }\n\u001B[1;32m---> 38\u001B[0m api_instance\u001B[38;5;241m.\u001B[39mentry_data_update(payload)\n\u001B[0;32m 39\u001B[0m \u001B[38;5;28mprint\u001B[39m(data_id)\n",
|
|
"File \u001B[1;32mD:\\Idea Project\\SaaS_V1.5\\api.py:382\u001B[0m, in \u001B[0;36mAPI.entry_data_update\u001B[1;34m(data, max_retries)\u001B[0m\n\u001B[0;32m 380\u001B[0m \u001B[38;5;28;01mwhile\u001B[39;00m retries \u001B[38;5;241m<\u001B[39m\u001B[38;5;241m=\u001B[39m max_retries:\n\u001B[0;32m 381\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[1;32m--> 382\u001B[0m res \u001B[38;5;241m=\u001B[39m requests\u001B[38;5;241m.\u001B[39mpost(url\u001B[38;5;241m=\u001B[39murl, data\u001B[38;5;241m=\u001B[39mpayload, headers\u001B[38;5;241m=\u001B[39mheaders, timeout\u001B[38;5;241m=\u001B[39m\u001B[38;5;241m10\u001B[39m)\n\u001B[0;32m 383\u001B[0m res\u001B[38;5;241m.\u001B[39mraise_for_status() \u001B[38;5;66;03m# 检查HTTP响应状态码,如果不等于200会抛出异常\u001B[39;00m\n\u001B[0;32m 384\u001B[0m data_get \u001B[38;5;241m=\u001B[39m res\u001B[38;5;241m.\u001B[39mjson()\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\site-packages\\requests\\api.py:115\u001B[0m, in \u001B[0;36mpost\u001B[1;34m(url, data, json, **kwargs)\u001B[0m\n\u001B[0;32m 103\u001B[0m \u001B[38;5;28;01mdef\u001B[39;00m \u001B[38;5;21mpost\u001B[39m(url, data\u001B[38;5;241m=\u001B[39m\u001B[38;5;28;01mNone\u001B[39;00m, json\u001B[38;5;241m=\u001B[39m\u001B[38;5;28;01mNone\u001B[39;00m, \u001B[38;5;241m*\u001B[39m\u001B[38;5;241m*\u001B[39mkwargs):\n\u001B[0;32m 104\u001B[0m \u001B[38;5;250m \u001B[39m\u001B[38;5;124mr\u001B[39m\u001B[38;5;124;03m\"\"\"Sends a POST request.\u001B[39;00m\n\u001B[0;32m 105\u001B[0m \n\u001B[0;32m 106\u001B[0m \u001B[38;5;124;03m :param url: URL for the new :class:`Request` object.\u001B[39;00m\n\u001B[1;32m (...)\u001B[0m\n\u001B[0;32m 112\u001B[0m \u001B[38;5;124;03m :rtype: requests.Response\u001B[39;00m\n\u001B[0;32m 113\u001B[0m \u001B[38;5;124;03m \"\"\"\u001B[39;00m\n\u001B[1;32m--> 115\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m request(\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mpost\u001B[39m\u001B[38;5;124m\"\u001B[39m, url, data\u001B[38;5;241m=\u001B[39mdata, json\u001B[38;5;241m=\u001B[39mjson, \u001B[38;5;241m*\u001B[39m\u001B[38;5;241m*\u001B[39mkwargs)\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\site-packages\\requests\\api.py:59\u001B[0m, in \u001B[0;36mrequest\u001B[1;34m(method, url, **kwargs)\u001B[0m\n\u001B[0;32m 55\u001B[0m \u001B[38;5;66;03m# By using the 'with' statement we are sure the session is closed, thus we\u001B[39;00m\n\u001B[0;32m 56\u001B[0m \u001B[38;5;66;03m# avoid leaving sockets open which can trigger a ResourceWarning in some\u001B[39;00m\n\u001B[0;32m 57\u001B[0m \u001B[38;5;66;03m# cases, and look like a memory leak in others.\u001B[39;00m\n\u001B[0;32m 58\u001B[0m \u001B[38;5;28;01mwith\u001B[39;00m sessions\u001B[38;5;241m.\u001B[39mSession() \u001B[38;5;28;01mas\u001B[39;00m session:\n\u001B[1;32m---> 59\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m session\u001B[38;5;241m.\u001B[39mrequest(method\u001B[38;5;241m=\u001B[39mmethod, url\u001B[38;5;241m=\u001B[39murl, \u001B[38;5;241m*\u001B[39m\u001B[38;5;241m*\u001B[39mkwargs)\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\site-packages\\requests\\sessions.py:589\u001B[0m, in \u001B[0;36mSession.request\u001B[1;34m(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)\u001B[0m\n\u001B[0;32m 584\u001B[0m send_kwargs \u001B[38;5;241m=\u001B[39m {\n\u001B[0;32m 585\u001B[0m \u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mtimeout\u001B[39m\u001B[38;5;124m\"\u001B[39m: timeout,\n\u001B[0;32m 586\u001B[0m \u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mallow_redirects\u001B[39m\u001B[38;5;124m\"\u001B[39m: allow_redirects,\n\u001B[0;32m 587\u001B[0m }\n\u001B[0;32m 588\u001B[0m send_kwargs\u001B[38;5;241m.\u001B[39mupdate(settings)\n\u001B[1;32m--> 589\u001B[0m resp \u001B[38;5;241m=\u001B[39m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39msend(prep, \u001B[38;5;241m*\u001B[39m\u001B[38;5;241m*\u001B[39msend_kwargs)\n\u001B[0;32m 591\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m resp\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\site-packages\\requests\\sessions.py:703\u001B[0m, in \u001B[0;36mSession.send\u001B[1;34m(self, request, **kwargs)\u001B[0m\n\u001B[0;32m 700\u001B[0m start \u001B[38;5;241m=\u001B[39m preferred_clock()\n\u001B[0;32m 702\u001B[0m \u001B[38;5;66;03m# Send the request\u001B[39;00m\n\u001B[1;32m--> 703\u001B[0m r \u001B[38;5;241m=\u001B[39m adapter\u001B[38;5;241m.\u001B[39msend(request, \u001B[38;5;241m*\u001B[39m\u001B[38;5;241m*\u001B[39mkwargs)\n\u001B[0;32m 705\u001B[0m \u001B[38;5;66;03m# Total elapsed time of the request (approximately)\u001B[39;00m\n\u001B[0;32m 706\u001B[0m elapsed \u001B[38;5;241m=\u001B[39m preferred_clock() \u001B[38;5;241m-\u001B[39m start\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\site-packages\\requests\\adapters.py:589\u001B[0m, in \u001B[0;36mHTTPAdapter.send\u001B[1;34m(self, request, stream, timeout, verify, cert, proxies)\u001B[0m\n\u001B[0;32m 586\u001B[0m timeout \u001B[38;5;241m=\u001B[39m TimeoutSauce(connect\u001B[38;5;241m=\u001B[39mtimeout, read\u001B[38;5;241m=\u001B[39mtimeout)\n\u001B[0;32m 588\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[1;32m--> 589\u001B[0m resp \u001B[38;5;241m=\u001B[39m conn\u001B[38;5;241m.\u001B[39murlopen(\n\u001B[0;32m 590\u001B[0m method\u001B[38;5;241m=\u001B[39mrequest\u001B[38;5;241m.\u001B[39mmethod,\n\u001B[0;32m 591\u001B[0m url\u001B[38;5;241m=\u001B[39murl,\n\u001B[0;32m 592\u001B[0m body\u001B[38;5;241m=\u001B[39mrequest\u001B[38;5;241m.\u001B[39mbody,\n\u001B[0;32m 593\u001B[0m headers\u001B[38;5;241m=\u001B[39mrequest\u001B[38;5;241m.\u001B[39mheaders,\n\u001B[0;32m 594\u001B[0m redirect\u001B[38;5;241m=\u001B[39m\u001B[38;5;28;01mFalse\u001B[39;00m,\n\u001B[0;32m 595\u001B[0m assert_same_host\u001B[38;5;241m=\u001B[39m\u001B[38;5;28;01mFalse\u001B[39;00m,\n\u001B[0;32m 596\u001B[0m preload_content\u001B[38;5;241m=\u001B[39m\u001B[38;5;28;01mFalse\u001B[39;00m,\n\u001B[0;32m 597\u001B[0m decode_content\u001B[38;5;241m=\u001B[39m\u001B[38;5;28;01mFalse\u001B[39;00m,\n\u001B[0;32m 598\u001B[0m retries\u001B[38;5;241m=\u001B[39m\u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39mmax_retries,\n\u001B[0;32m 599\u001B[0m timeout\u001B[38;5;241m=\u001B[39mtimeout,\n\u001B[0;32m 600\u001B[0m chunked\u001B[38;5;241m=\u001B[39mchunked,\n\u001B[0;32m 601\u001B[0m )\n\u001B[0;32m 603\u001B[0m \u001B[38;5;28;01mexcept\u001B[39;00m (ProtocolError, \u001B[38;5;167;01mOSError\u001B[39;00m) \u001B[38;5;28;01mas\u001B[39;00m err:\n\u001B[0;32m 604\u001B[0m \u001B[38;5;28;01mraise\u001B[39;00m \u001B[38;5;167;01mConnectionError\u001B[39;00m(err, request\u001B[38;5;241m=\u001B[39mrequest)\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\site-packages\\urllib3\\connectionpool.py:789\u001B[0m, in \u001B[0;36mHTTPConnectionPool.urlopen\u001B[1;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001B[0m\n\u001B[0;32m 786\u001B[0m response_conn \u001B[38;5;241m=\u001B[39m conn \u001B[38;5;28;01mif\u001B[39;00m \u001B[38;5;129;01mnot\u001B[39;00m release_conn \u001B[38;5;28;01melse\u001B[39;00m \u001B[38;5;28;01mNone\u001B[39;00m\n\u001B[0;32m 788\u001B[0m \u001B[38;5;66;03m# Make the request on the HTTPConnection object\u001B[39;00m\n\u001B[1;32m--> 789\u001B[0m response \u001B[38;5;241m=\u001B[39m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_make_request(\n\u001B[0;32m 790\u001B[0m conn,\n\u001B[0;32m 791\u001B[0m method,\n\u001B[0;32m 792\u001B[0m url,\n\u001B[0;32m 793\u001B[0m timeout\u001B[38;5;241m=\u001B[39mtimeout_obj,\n\u001B[0;32m 794\u001B[0m body\u001B[38;5;241m=\u001B[39mbody,\n\u001B[0;32m 795\u001B[0m headers\u001B[38;5;241m=\u001B[39mheaders,\n\u001B[0;32m 796\u001B[0m chunked\u001B[38;5;241m=\u001B[39mchunked,\n\u001B[0;32m 797\u001B[0m retries\u001B[38;5;241m=\u001B[39mretries,\n\u001B[0;32m 798\u001B[0m response_conn\u001B[38;5;241m=\u001B[39mresponse_conn,\n\u001B[0;32m 799\u001B[0m preload_content\u001B[38;5;241m=\u001B[39mpreload_content,\n\u001B[0;32m 800\u001B[0m decode_content\u001B[38;5;241m=\u001B[39mdecode_content,\n\u001B[0;32m 801\u001B[0m \u001B[38;5;241m*\u001B[39m\u001B[38;5;241m*\u001B[39mresponse_kw,\n\u001B[0;32m 802\u001B[0m )\n\u001B[0;32m 804\u001B[0m \u001B[38;5;66;03m# Everything went great!\u001B[39;00m\n\u001B[0;32m 805\u001B[0m clean_exit \u001B[38;5;241m=\u001B[39m \u001B[38;5;28;01mTrue\u001B[39;00m\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\site-packages\\urllib3\\connectionpool.py:536\u001B[0m, in \u001B[0;36mHTTPConnectionPool._make_request\u001B[1;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001B[0m\n\u001B[0;32m 534\u001B[0m \u001B[38;5;66;03m# Receive the response from the server\u001B[39;00m\n\u001B[0;32m 535\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[1;32m--> 536\u001B[0m response \u001B[38;5;241m=\u001B[39m conn\u001B[38;5;241m.\u001B[39mgetresponse()\n\u001B[0;32m 537\u001B[0m \u001B[38;5;28;01mexcept\u001B[39;00m (BaseSSLError, \u001B[38;5;167;01mOSError\u001B[39;00m) \u001B[38;5;28;01mas\u001B[39;00m e:\n\u001B[0;32m 538\u001B[0m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_raise_timeout(err\u001B[38;5;241m=\u001B[39me, url\u001B[38;5;241m=\u001B[39murl, timeout_value\u001B[38;5;241m=\u001B[39mread_timeout)\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\site-packages\\urllib3\\connection.py:464\u001B[0m, in \u001B[0;36mHTTPConnection.getresponse\u001B[1;34m(self)\u001B[0m\n\u001B[0;32m 461\u001B[0m \u001B[38;5;28;01mfrom\u001B[39;00m \u001B[38;5;21;01m.\u001B[39;00m\u001B[38;5;21;01mresponse\u001B[39;00m \u001B[38;5;28;01mimport\u001B[39;00m HTTPResponse\n\u001B[0;32m 463\u001B[0m \u001B[38;5;66;03m# Get the response from http.client.HTTPConnection\u001B[39;00m\n\u001B[1;32m--> 464\u001B[0m httplib_response \u001B[38;5;241m=\u001B[39m \u001B[38;5;28msuper\u001B[39m()\u001B[38;5;241m.\u001B[39mgetresponse()\n\u001B[0;32m 466\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[0;32m 467\u001B[0m assert_header_parsing(httplib_response\u001B[38;5;241m.\u001B[39mmsg)\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\http\\client.py:1428\u001B[0m, in \u001B[0;36mHTTPConnection.getresponse\u001B[1;34m(self)\u001B[0m\n\u001B[0;32m 1426\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[0;32m 1427\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[1;32m-> 1428\u001B[0m response\u001B[38;5;241m.\u001B[39mbegin()\n\u001B[0;32m 1429\u001B[0m \u001B[38;5;28;01mexcept\u001B[39;00m \u001B[38;5;167;01mConnectionError\u001B[39;00m:\n\u001B[0;32m 1430\u001B[0m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39mclose()\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\http\\client.py:331\u001B[0m, in \u001B[0;36mHTTPResponse.begin\u001B[1;34m(self)\u001B[0m\n\u001B[0;32m 329\u001B[0m \u001B[38;5;66;03m# read until we get a non-100 response\u001B[39;00m\n\u001B[0;32m 330\u001B[0m \u001B[38;5;28;01mwhile\u001B[39;00m \u001B[38;5;28;01mTrue\u001B[39;00m:\n\u001B[1;32m--> 331\u001B[0m version, status, reason \u001B[38;5;241m=\u001B[39m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_read_status()\n\u001B[0;32m 332\u001B[0m \u001B[38;5;28;01mif\u001B[39;00m status \u001B[38;5;241m!=\u001B[39m CONTINUE:\n\u001B[0;32m 333\u001B[0m \u001B[38;5;28;01mbreak\u001B[39;00m\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\http\\client.py:292\u001B[0m, in \u001B[0;36mHTTPResponse._read_status\u001B[1;34m(self)\u001B[0m\n\u001B[0;32m 291\u001B[0m \u001B[38;5;28;01mdef\u001B[39;00m \u001B[38;5;21m_read_status\u001B[39m(\u001B[38;5;28mself\u001B[39m):\n\u001B[1;32m--> 292\u001B[0m line \u001B[38;5;241m=\u001B[39m \u001B[38;5;28mstr\u001B[39m(\u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39mfp\u001B[38;5;241m.\u001B[39mreadline(_MAXLINE \u001B[38;5;241m+\u001B[39m \u001B[38;5;241m1\u001B[39m), \u001B[38;5;124m\"\u001B[39m\u001B[38;5;124miso-8859-1\u001B[39m\u001B[38;5;124m\"\u001B[39m)\n\u001B[0;32m 293\u001B[0m \u001B[38;5;28;01mif\u001B[39;00m \u001B[38;5;28mlen\u001B[39m(line) \u001B[38;5;241m>\u001B[39m _MAXLINE:\n\u001B[0;32m 294\u001B[0m \u001B[38;5;28;01mraise\u001B[39;00m LineTooLong(\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mstatus line\u001B[39m\u001B[38;5;124m\"\u001B[39m)\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\socket.py:707\u001B[0m, in \u001B[0;36mSocketIO.readinto\u001B[1;34m(self, b)\u001B[0m\n\u001B[0;32m 705\u001B[0m \u001B[38;5;28;01mwhile\u001B[39;00m \u001B[38;5;28;01mTrue\u001B[39;00m:\n\u001B[0;32m 706\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[1;32m--> 707\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_sock\u001B[38;5;241m.\u001B[39mrecv_into(b)\n\u001B[0;32m 708\u001B[0m \u001B[38;5;28;01mexcept\u001B[39;00m timeout:\n\u001B[0;32m 709\u001B[0m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_timeout_occurred \u001B[38;5;241m=\u001B[39m \u001B[38;5;28;01mTrue\u001B[39;00m\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\ssl.py:1252\u001B[0m, in \u001B[0;36mSSLSocket.recv_into\u001B[1;34m(self, buffer, nbytes, flags)\u001B[0m\n\u001B[0;32m 1248\u001B[0m \u001B[38;5;28;01mif\u001B[39;00m flags \u001B[38;5;241m!=\u001B[39m \u001B[38;5;241m0\u001B[39m:\n\u001B[0;32m 1249\u001B[0m \u001B[38;5;28;01mraise\u001B[39;00m \u001B[38;5;167;01mValueError\u001B[39;00m(\n\u001B[0;32m 1250\u001B[0m \u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mnon-zero flags not allowed in calls to recv_into() on \u001B[39m\u001B[38;5;132;01m%s\u001B[39;00m\u001B[38;5;124m\"\u001B[39m \u001B[38;5;241m%\u001B[39m\n\u001B[0;32m 1251\u001B[0m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m\u001B[38;5;18m__class__\u001B[39m)\n\u001B[1;32m-> 1252\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39mread(nbytes, buffer)\n\u001B[0;32m 1253\u001B[0m \u001B[38;5;28;01melse\u001B[39;00m:\n\u001B[0;32m 1254\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28msuper\u001B[39m()\u001B[38;5;241m.\u001B[39mrecv_into(buffer, nbytes, flags)\n",
|
|
"File \u001B[1;32mD:\\ProgramTools\\Anaconda\\Lib\\ssl.py:1104\u001B[0m, in \u001B[0;36mSSLSocket.read\u001B[1;34m(self, len, buffer)\u001B[0m\n\u001B[0;32m 1102\u001B[0m \u001B[38;5;28;01mtry\u001B[39;00m:\n\u001B[0;32m 1103\u001B[0m \u001B[38;5;28;01mif\u001B[39;00m buffer \u001B[38;5;129;01mis\u001B[39;00m \u001B[38;5;129;01mnot\u001B[39;00m \u001B[38;5;28;01mNone\u001B[39;00m:\n\u001B[1;32m-> 1104\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_sslobj\u001B[38;5;241m.\u001B[39mread(\u001B[38;5;28mlen\u001B[39m, buffer)\n\u001B[0;32m 1105\u001B[0m \u001B[38;5;28;01melse\u001B[39;00m:\n\u001B[0;32m 1106\u001B[0m \u001B[38;5;28;01mreturn\u001B[39;00m \u001B[38;5;28mself\u001B[39m\u001B[38;5;241m.\u001B[39m_sslobj\u001B[38;5;241m.\u001B[39mread(\u001B[38;5;28mlen\u001B[39m)\n",
|
|
"\u001B[1;31mKeyboardInterrupt\u001B[0m: "
|
|
]
|
|
}
|
|
],
|
|
"execution_count": 2
|
|
},
|
|
{
|
|
"metadata": {},
|
|
"cell_type": "code",
|
|
"source": [
|
|
"import datetime\n",
|
|
"import os\n",
|
|
"import time\n",
|
|
"import requests\n",
|
|
"from api import API\n",
|
|
"import re\n",
|
|
"from back_ground_module import CommonModule\n",
|
|
"import pandas as pd\n",
|
|
"from log_config import configure_task_logger, configure_error_task_logger\n",
|
|
"from tqdm import tqdm\n",
|
|
"\n",
|
|
"api_instance = API()\n",
|
|
"common_module = CommonModule()\n",
|
|
"# start_time = datetime.datetime.now()\n",
|
|
"\n",
|
|
"df = pd.read_excel(r\"C:\\Users\\Administrator.DESKTOP-7IC2USJ\\Downloads\\接车宝日常回访单_20250702153529.xlsx\",sheet_name=\"Sheet1\")\n",
|
|
"for index,row in tqdm(df.iterrows()):\n",
|
|
" data_id = row[\"data_id\"]\n",
|
|
" payload = {\n",
|
|
" \"data_id\": data_id\n",
|
|
" }\n",
|
|
" res = api_instance.workflow_instance_get(payload)\n",
|
|
" task_list = res.get(\"tasks\")\n",
|
|
" finish_time = \"\"\n",
|
|
" for task in task_list:\n",
|
|
" if task.get(\"title\") == \"客服跟进\":\n",
|
|
" finish_time = task.get(\"finish_time\")\n",
|
|
" break\n",
|
|
"\n",
|
|
" payload = {\n",
|
|
" \"api_key\":\"6717470a0b3975ef583c6df1\",\n",
|
|
" \"entry_id\":\"67174710da507490d8ac12c1\", # jiechebao \n",
|
|
" \"data_id\": data_id,\n",
|
|
" \"data\":{\n",
|
|
" \"_widget_1751356539629\": {\"value\": finish_time} # 注意修改\n",
|
|
" }\n",
|
|
" }\n",
|
|
" api_instance.entry_data_update(payload) # 修改\n",
|
|
"\n",
|
|
" "
|
|
],
|
|
"id": "469f74848d12b718",
|
|
"outputs": [],
|
|
"execution_count": null
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 2
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython2",
|
|
"version": "2.7.6"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 5
|
|
}
|