From 1bf3aa2ead8fe1cdb908dd504a821552a12e645b Mon Sep 17 00:00:00 2001 From: zqc <835569504@qq.com> Date: Tue, 3 Mar 2026 11:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B2=E7=AA=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/contants.py | 2 +- test_cam.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/contants.py b/common/contants.py index 484af5b..4825756 100644 --- a/common/contants.py +++ b/common/contants.py @@ -17,7 +17,7 @@ def init_config(config_path: str = "config.yaml"): Args: config_path: 配置文件路径,默认为 config.yaml """ - global ALERT_PUSH_URL + global ALERT_PUSH_URL, HLS_ROOT_PATH try: with open(config_path, "r", encoding="utf-8") as f: diff --git a/test_cam.py b/test_cam.py index a6beb6d..24dd1a4 100644 --- a/test_cam.py +++ b/test_cam.py @@ -34,8 +34,8 @@ def get_camera_preview_url(camera_index_code): "msg": "SUCCESS", "data": { # "url": "rtsp://192.168.110.139:8554/test" - "url": "rtsp://192.168.43.33:8554/test" - # "url": "rtsp://localhost:8554/test" + # "url": "rtsp://192.168.43.33:8554/test" + "url": "rtsp://localhost:8554/test" } }