فهرست منبع

修改NVR默认全部APP通知

zhangdongming 9 ماه پیش
والد
کامیت
0a7ee385a9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Controller/DetectControllerV2.py

+ 1 - 1
Controller/DetectControllerV2.py

@@ -234,7 +234,7 @@ class DetectControllerViewV2(View):
                         # 确定通道数量,如果channel大于0则使用其值,否则默认使用4
                         channel_count = uid_set_qs[0].channel if uid_set_qs[0].channel > 0 else 4
                         # 生成通道的列表,每个频道对应一个字典,格式为 "channelX": [types]
-                        channel_list = [{f'channel{index + 1}': types} for index in range(channel_count)]
+                        channel_list = [{f'channel{index + 1}': ALGORITHM_COMBO_TYPES} for index in range(channel_count)]
                         # 将NVR字典赋值给msg_data中的'nvr'键
                         msg_data['nvr'] = channel_list
                         msg_data['eventTypes']['device'] = []  # 将IPC允许推送类型设为空