Explorar el Código

修复ai推送消息识别类型

lang hace 3 años
padre
commit
773ebe54a3
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      Controller/AiController.py

+ 3 - 2
Controller/AiController.py

@@ -371,9 +371,10 @@ class AiView(View):
         # exit(new_bounding_box_list)
         conform_user_d_group = list(conform_user_d_group)
         if len(conform_user_d_group) > 1:
-            eventType = conform_user_d_group[0]
-        else:
             eventType = 123    #组合类型
+        else:
+            eventType = conform_user_d_group[0]
+
         return {'eventType': eventType, 'label_list': conform_label_list,
                 'new_bounding_box_dict':new_bounding_box_dict}