From 0c50dfff308b3fd25704f19532e97f08ad1a44cd Mon Sep 17 00:00:00 2001 From: zqc <835569504@qq.com> Date: Tue, 10 Mar 2026 10:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=A4=A7=E4=B8=8A=E4=BC=A0=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biz/base_frame_processor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/biz/base_frame_processor.py b/biz/base_frame_processor.py index c8c3826..9cbfc8e 100644 --- a/biz/base_frame_processor.py +++ b/biz/base_frame_processor.py @@ -161,13 +161,13 @@ class BaseFrameProcessorWorker(threading.Thread): 'video': f, 'metadata': (None, json.dumps(msg)) } - response = requests.post(constants.ALERT_PUSH_URL, files=files, timeout=10.0) + response = requests.post(constants.ALERT_PUSH_URL, files=files, timeout=60.0) else: # 无视频,也使用 multipart/form-data files = { 'metadata': (None, json.dumps(msg)) } - response = requests.post(constants.ALERT_PUSH_URL, files=files, timeout=5.0) + response = requests.post(constants.ALERT_PUSH_URL, files=files, timeout=30.0) if response.status_code == 200: logger.info(f"[INFO] POST alert sent successfully for actions: {msg.get('result_type')}") @@ -387,6 +387,7 @@ class BaseFrameProcessorWorker(threading.Thread): # 检查是否超过推送间隔 if current_time - last_push >= ALERT_PUSH_INTERVAL: push_actions.append(action) + # push_actions.append(get_alert_label(action)) # 更新该action的最后推送时间 self.last_alert_push_time[cam_id][action] = current_time