lang 3 жил өмнө
parent
commit
7f0b5fa2cc

+ 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)