From fffef90e980b239ac1ff3a63c3d5fef61ca6da81 Mon Sep 17 00:00:00 2001 From: zqc <835569504@qq.com> Date: Thu, 5 Mar 2026 09:55:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3constants=20ALERT=5FPUSH=5FUR?= =?UTF-8?q?L=E6=9C=AA=E6=AD=A3=E7=A1=AE=E5=BC=95=E5=85=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biz/base_frame_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/biz/base_frame_processor.py b/biz/base_frame_processor.py index 1558ba5..c8a3a59 100644 --- a/biz/base_frame_processor.py +++ b/biz/base_frame_processor.py @@ -11,7 +11,7 @@ import requests from typing import Dict, Any, Callable from concurrent.futures import ThreadPoolExecutor -from common.constants import ALERT_PUSH_URL +from common import constants from utils.logger import get_logger logger = get_logger(__name__) @@ -78,7 +78,7 @@ class BaseFrameProcessorWorker(threading.Thread): def _post_alert(self, msg: dict): """异步发送告警 POST 请求(在线程池中执行)""" try: - response = requests.post(ALERT_PUSH_URL, json=msg, timeout=5.0) + response = requests.post(constants.ALERT_PUSH_URL, json=msg, timeout=5.0) if response.status_code == 200: print(f"[INFO] POST alert sent successfully for actions: {msg.get('result_type')}") else: