|
@@ -127,7 +127,7 @@ class NotificationView(View):
|
|
|
params = {'nickname': nickname, 'uid': uid, 'kwag_args': kwag_args, 'is_st': is_st,
|
|
|
'is_sys_msg': is_sys_msg, 'channel': channel, 'event_type': event_type, 'n_time': n_time,
|
|
|
'electricity': '', 'bucket': bucket, 'app_push': '', 'storage_location': 1, 'ai_type': 0,
|
|
|
- 'dealings_type': 0, 'detection': 0}
|
|
|
+ 'dealings_type': 0, 'detection': 0, 'device_type': 1}
|
|
|
# 推送以及报警消息存库
|
|
|
result = DevicePushService.save_msg_push(uid_set_push_list=uid_push_list, **params)
|
|
|
if result['code_date'] is None:
|
|
@@ -212,7 +212,7 @@ class NotificationView(View):
|
|
|
res_data = {'code': 0, 'img_url_list': img_url_list, 'msg': 'success 3'}
|
|
|
return JsonResponse(status=200, data=res_data)
|
|
|
except Exception as e:
|
|
|
- logger.info('消息推送-异常详情,errLine:{}, errMsg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
+ logger.info('旧推送接口异常,errLine:{}, errMsg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
data = {
|
|
|
'errLine': e.__traceback__.tb_lineno,
|
|
|
'errMsg': repr(e),
|