瀏覽代碼

注释多标签数组

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: