From 5fc22c38fa7bc36471f47c64990c72214299c039 Mon Sep 17 00:00:00 2001 From: "mark.tian" Date: Tue, 2 Dec 2025 21:48:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 4 ++-- app/config.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 6bbfc2c..c8c99aa 100644 --- a/.env.example +++ b/.env.example @@ -9,8 +9,8 @@ REDIS_LOCK_MAX_RETRIES=100 # 业务配置 COUNT_THRESHOLD=3 -EXTERNAL_API_RETRY_MAX=4 -EXTERNAL_API_URL=https://external.com/api/openapi/customerApi/aiTaskResultFail +EXTERNAL_API_RETRY_MAX=3 +EXTERNAL_API_URL=https://jeep-api.d2c.stlassac.com/api/openapi/customerApi/aiTaskResultFail # 日志配置 LOG_LEVEL=INFO diff --git a/app/config.py b/app/config.py index e47374e..3574d24 100644 --- a/app/config.py +++ b/app/config.py @@ -3,7 +3,7 @@ from pydantic_settings import BaseSettings class Settings(BaseSettings): # 数据库配置 - database_url: str = "postgresql+asyncpg://user:password@localhost:5432/ai_talk_callback_db" + database_url: str = "" # Redis配置 redis_url: str = "redis://localhost:6379/0" @@ -13,8 +13,8 @@ class Settings(BaseSettings): # 业务配置 count_threshold: int = 3 # count阈值,大于等于此值直接返回 - external_api_retry_max: int = 4 # 外部API最大重试次数 - external_api_url: str = "https://external.com/api/openapi/customerApi/aiTaskResultFail" + external_api_retry_max: int = 3 # 外部API最大重试次数 + external_api_url: str = "" # 日志配置 log_level: str = "INFO" # DEBUG, INFO, WARNING, ERROR, CRITICAL