|
@@ -50,7 +50,7 @@ class NotificationV2View(View):
|
|
|
dealings_type = int(request_dict.get('dealingsType', 0))
|
|
|
detection = int(request_dict.get('detection', 0))
|
|
|
button = request_dict.get('button', '1')
|
|
|
-
|
|
|
+ uid = ""
|
|
|
# 参数校验
|
|
|
if not all([channel, n_time]):
|
|
|
return JsonResponse(status=200, data={'code': 444, 'msg': 'param is wrong'})
|
|
@@ -161,7 +161,9 @@ class NotificationV2View(View):
|
|
|
uid, n_time, event_type, json.dumps(res_data)))
|
|
|
return JsonResponse(status=200, data=res_data)
|
|
|
except Exception as e:
|
|
|
- TIME_LOGGER.info('V2推送接口异常,error_line:{},error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
+ TIME_LOGGER.info(
|
|
|
+ 'V2推送接口异常, etk:{}, uid:{},error_line:{},error_msg:{}'.format(etk, uid, e.__traceback__.tb_lineno,
|
|
|
+ repr(e)))
|
|
|
data = {
|
|
|
'error_line': e.__traceback__.tb_lineno,
|
|
|
'error_msg': repr(e)
|