浏览代码

修改ai识别后的组合类型eventType存储方式

lang 3 年之前
父节点
当前提交
b17e3f324e
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. 2 7
      Controller/AiController.py

+ 2 - 7
Controller/AiController.py

@@ -50,12 +50,6 @@ class AiView(View):
             return response.json(444, 'error path')
         elif operation == 'identification':  # ai识别
             return self.do_ai_identification(request.POST, response)
-        elif operation == 'doPayPalCallBack':  # paypal支付回调
-            return self.do_pay_by_paypal_callback(request_dict, response)
-        elif operation == 'doAlipayCallBack':  # 支付宝支付回调
-            return self.do_alipay_callback(request_dict, response)
-        elif operation == 'doWechatCallBack':  # 微信支付回调
-            return self.do_wechat_callback(request, response)
         else:
             token = request_dict.get('token', None)
             # 设备主键uid
@@ -358,7 +352,8 @@ 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 = 123  # 组合类型
+            conform_user_d_group.sort()
+            eventType = ''.join(conform_user_d_group)  # 组合类型
         else:
             eventType = conform_user_d_group[0]