浏览代码

修复ai推送消息识别类型

lang 3 年之前
父节点
当前提交
773ebe54a3
共有 1 个文件被更改,包括 3 次插入2 次删除
  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}