|
@@ -37,7 +37,6 @@ class NotificationV2View(View):
|
|
|
@param request_dict:detection 检测类型 0:普通,1:算法
|
|
|
"""
|
|
|
logger = logging.getLogger('info')
|
|
|
- logger.info('移动侦测V2接口参数:{}'.format(request_dict))
|
|
|
uidToken = request_dict.get('uidToken', None)
|
|
|
etk = request_dict.get('etk', None)
|
|
|
channel = request_dict.get('channel', '1')
|
|
@@ -63,7 +62,7 @@ class NotificationV2View(View):
|
|
|
uid = DevicePushService.decode_uid(etk, uidToken)
|
|
|
if len(uid) != 20 and len(uid) != 14:
|
|
|
return JsonResponse(status=200, data={'code': 404, 'msg': 'wrong uid'})
|
|
|
-
|
|
|
+ logger.info('消息推送V2****uid{}'.format(uid))
|
|
|
# 判断是否为系统消息
|
|
|
is_sys_msg = DevicePushService.judge_sys_msg(int(event_type))
|
|
|
if is_sys_msg:
|