浏览代码

修改推送日志

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

+ 2 - 2
Controller/AiController.py

@@ -469,11 +469,11 @@ class AiView(View):
         logger.info("---msg--id={msg_id}".format(msg_id=msg_id))
         logger.info("---apns----push_time={apns_push_time}".format(apns_push_time=apns_push_time))
         try:
-            AiProcessTime.objects.filter(msg_id=msg_id).update(appPushTime=apns_push_time)
+            aiRes = AiProcessTime.objects.filter(msg_id=msg_id).update(appPushTime=apns_push_time)
         except Exception as e:
             logger.info(repr(e))
             return response.json(902,repr(e))
-        return response.json(0)
+        return response.json(0,aiRes)
 
     def do_ai_identification(self, request_dict,response):
         etk = request_dict.get('etk', None)