فهرست منبع

注释多标签数组

zhangdongming 2 سال پیش
والد
کامیت
27154a9116
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      Controller/DetectControllerV2.py

+ 5 - 4
Controller/DetectControllerV2.py

@@ -416,10 +416,11 @@ class DetectControllerViewV2(View):
 
                 p['borderCoords'] = '' if p['borderCoords'] == '' else json.loads(p['borderCoords'])  # ai消息坐标信息
                 p['ai_event_type_list'] = []
-                # 如果是ai消息类型,则分解eventType, 如:123 -> [1,2,3]
-                if p['borderCoords'] and p['eventType'] in ai_all_event_type:
-                    p['ai_event_type_list'] = list(map(int, str(p['eventType'])))
-                p['ai_event_type_list'] += EquipmentInfoService.get_combo_types(p['eventType'], p['eventTag'])
+                # if p['eventType'] in ai_all_event_type:  # 如果是ai消息类型,则分解eventType, 如:123 -> [1,2,3]
+                #     # 如果是ai消息类型,则分解eventType, 如:123 -> [1,2,3]
+                #     if p['borderCoords'] and p['eventType'] in ai_all_event_type:
+                #         p['ai_event_type_list'] = list(map(int, str(p['eventType'])))
+                #     p['ai_event_type_list'] += EquipmentInfoService.get_combo_types(p['eventType'])
                 res.append(p)
             return response.json(0, {'datas': res, 'count': count})
         except Exception as e: