From 710e16d4541fac2b9e3e58c522ad7aaa3a3f47ec Mon Sep 17 00:00:00 2001 From: "mark.tian" Date: Thu, 11 Dec 2025 12:26:47 +0800 Subject: [PATCH] =?UTF-8?q?api=E9=85=8D=E7=BD=AE=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api_config.py | 69 ++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/app/api_config.py b/app/api_config.py index a04b44c..383a9e8 100644 --- a/app/api_config.py +++ b/app/api_config.py @@ -1,44 +1,47 @@ """API接口配置文件""" -# API配置 ''' -# 关闭清洗任务 -'task_1': { - 'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/a3bdd5b6-1932-4bc9-95bf-dbc4bccb171f', - 'method': 'PUT', - 'headers': { - 'Content-Type': 'application/json', - 'User-Agent': 'Celery-Task/1.0' +# API配置 +API_CONFIG = { + # 关闭清洗任务 + 'task_1': { + 'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/a3bdd5b6-1932-4bc9-95bf-dbc4bccb171f', + 'method': 'PUT', + 'headers': { + 'Content-Type': 'application/json', + 'User-Agent': 'Celery-Task/1.0' + }, + 'timeout': 30, + 'body': { + } }, - 'timeout': 30, - 'body': { - } -}, -# Ice跟进 -'task_2': { - 'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/db17ba5f-666a-4dc0-a635-1d4d0059338d', - 'method': 'PUT', - 'headers': { - 'Content-Type': 'application/json', - 'User-Agent': 'Celery-Task/1.0' + # Ice跟进 + 'task_2': { + 'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/db17ba5f-666a-4dc0-a635-1d4d0059338d', + 'method': 'PUT', + 'headers': { + 'Content-Type': 'application/json', + 'User-Agent': 'Celery-Task/1.0' + }, + 'timeout': 30, + 'body': { + } }, - 'timeout': 30, - 'body': { - } -}, -# 战败清洗跟进 -'task_3': { - 'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/2121d91e-c7d8-47cf-8a67-fa2f22e087ae', - 'method': 'PUT', - 'headers': { - 'Content-Type': 'application/json', - 'User-Agent': 'Celery-Task/1.0' - }, - 'timeout': 30, - 'body': { + # 战败清洗跟进 + 'task_3': { + 'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/2121d91e-c7d8-47cf-8a67-fa2f22e087ae', + 'method': 'PUT', + 'headers': { + 'Content-Type': 'application/json', + 'User-Agent': 'Celery-Task/1.0' + }, + 'timeout': 30, + 'body': { + } } } ''' + API_CONFIG = { 'task_test': { 'url': 'https://httpbin.org/post',