From 2b83fc86d3a608d9cfc66ddbffd0f86d30f5e6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=A0=87?= Date: Thu, 7 Aug 2025 16:18:42 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=F0=9F=90=9B:1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scheduler/scheduler_module.py | 2 +- util/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduler/scheduler_module.py b/scheduler/scheduler_module.py index 7912511..5cdb789 100644 --- a/scheduler/scheduler_module.py +++ b/scheduler/scheduler_module.py @@ -101,7 +101,7 @@ async def poll_external_api(): # data 参数用于表单字段,files 参数用于文件 for name in config_data["user_group"]: data = { - "message": "文档", + "message": "", "contactName": name } async with httpx.AsyncClient() as client: diff --git a/util/config.py b/util/config.py index de535b3..2c03b4a 100644 --- a/util/config.py +++ b/util/config.py @@ -16,7 +16,7 @@ class DataLoader: print(f"current fileop.py path: {file_path}") if DataLoader._data is None: try: - with open(file_path, "r") as file: + with open(file_path, "r", encoding='utf-8') as file: DataLoader._data = json.load(file) except FileNotFoundError: raise HTTPException(status_code=500, detail="File not found")