Jelajahi Sumber

更新字段检测到通道

zhangdongming 4 bulan lalu
induk
melakukan
eeb94cc402
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Controller/DetectControllerV2.py

+ 1 - 1
Controller/DetectControllerV2.py

@@ -563,7 +563,7 @@ class DetectControllerViewV2(View):
                     equipment_info['ai_event_type_list'] = list(map(int, str(event_type)))
                     equipment_info['ai_event_type_list'] = list(map(int, str(event_type)))
                 if EquipmentInfoService.is_combo_tag(event_type, event_tag):
                 if EquipmentInfoService.is_combo_tag(event_type, event_tag):
                     equipment_info['ai_event_type_list'] += EquipmentInfoService.get_combo_types(event_type, event_tag)
                     equipment_info['ai_event_type_list'] += EquipmentInfoService.get_combo_types(event_type, event_tag)
-
+                equipment_info['alarm'] = 'Motion \tChannel:{channel}'.format(channel=channel)
                 res.append(equipment_info)
                 res.append(equipment_info)
             return response.json(0, {'datas': res, 'count': count})
             return response.json(0, {'datas': res, 'count': count})
         except Exception as e:
         except Exception as e: