Kaynağa Gözat

查询消息提醒设置有nvr数据则返回空数组

zhangdongming 10 ay önce
ebeveyn
işleme
1b4ed2ccff
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      Controller/EquipmentManager.py

+ 3 - 0
Controller/EquipmentManager.py

@@ -1165,6 +1165,9 @@ def uid_status(request):
                 # 没有找到匹配的 channel,使用默认值替换 nvr
                 available_types = [t for t in ALGORITHM_COMBO_TYPES if t != 51]
                 data['msgData']['nvr'] = available_types
+        else:
+            if 'nvr' in qs[0].get('msg_notify'):
+                data['msgData']['nvr'] = []
 
         # 调试
         debugTwos = int(time.time())