Эх сурвалжийг харах

修复查询AI推送数据问题问题

locky 1 жил өмнө
parent
commit
fd6263c342

+ 1 - 1
Controller/DetectControllerV2.py

@@ -448,7 +448,7 @@ class DetectControllerViewV2(View):
                 else:
                 else:
                     equipment_info['uid_type'] = ''
                     equipment_info['uid_type'] = ''
 
 
-                equipment_info['borderCoords'] = '' if border_coords == '' else json.loads(border_coords)  # ai消息坐标信息
+                equipment_info['borderCoords'] = '' if border_coords == '' else eval(border_coords)  # ai消息坐标信息
                 equipment_info['ai_event_type_list'] = []
                 equipment_info['ai_event_type_list'] = []
                 # 如果是ai消息类型,则分解eventType, 如:123 -> [1,2,3]
                 # 如果是ai消息类型,则分解eventType, 如:123 -> [1,2,3]
                 if border_coords and event_type in ai_all_event_type:
                 if border_coords and event_type in ai_all_event_type: