|
@@ -461,8 +461,14 @@ class AiView(View):
|
|
return response.json(10, 'generate_order_false')
|
|
return response.json(10, 'generate_order_false')
|
|
|
|
|
|
def update_jpush_time(self,userID, request_dict, response):
|
|
def update_jpush_time(self,userID, request_dict, response):
|
|
|
|
+ logger = logging.getLogger('info')
|
|
msg_id = request_dict.get('msg_id', None)
|
|
msg_id = request_dict.get('msg_id', None)
|
|
apns_push_time = request_dict.get('apns_push_time', None)
|
|
apns_push_time = request_dict.get('apns_push_time', None)
|
|
|
|
+ logger.info("----init--apns----push_time={apns_push_time}".format(apns_push_time=apns_push_time))
|
|
|
|
+ apns_push_time = int(apns_push_time)
|
|
|
|
+ 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))
|
|
|
|
+
|
|
AiProcessTime.objects.filter(msg_id=msg_id).update(appPushTime=apns_push_time)
|
|
AiProcessTime.objects.filter(msg_id=msg_id).update(appPushTime=apns_push_time)
|
|
return response.json(0)
|
|
return response.json(0)
|
|
|
|
|