|
@@ -422,7 +422,8 @@ class DetectControllerViewV2(View):
|
|
# 如果是ai消息类型,则分解eventType, 如:123 -> [1,2,3]
|
|
# 如果是ai消息类型,则分解eventType, 如:123 -> [1,2,3]
|
|
if p['borderCoords'] and p['eventType'] in ai_all_event_type:
|
|
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'] = list(map(int, str(p['eventType'])))
|
|
- p['ai_event_type_list'] += EquipmentInfoService.get_combo_types(p['eventType'], p['eventTag'])
|
|
|
|
|
|
+ if EquipmentInfoService.is_combo_tag(p['eventType'], p['eventTag']):
|
|
|
|
+ p['ai_event_type_list'] += EquipmentInfoService.get_combo_types(p['eventType'], p['eventTag'])
|
|
res.append(p)
|
|
res.append(p)
|
|
return response.json(0, {'datas': res, 'count': count})
|
|
return response.json(0, {'datas': res, 'count': count})
|
|
except Exception as e:
|
|
except Exception as e:
|