Quellcode durchsuchen

修改旧推送接口传参

locky vor 1 Jahr
Ursprung
Commit
5920811d54
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      Controller/DetectController.py

+ 3 - 3
Controller/DetectController.py

@@ -122,10 +122,10 @@ 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, 'device_type': 1,
-                      'app_push_config': ''}
+                      'dealings_type': 0, 'detection': 0, 'device_type': 1, 'app_push_config': '',
+                      'uid_set_push_list': uid_push_list}
             #  推送以及报警消息存库
-            result = DevicePushService.save_msg_push(uid_set_push_list=uid_push_list, **params)
+            result = DevicePushService.save_msg_push(**params)
             if result['code_date'] is None:
                 result['code_date'] = {'do_apns_code': '', 'do_fcm_code': '', 'do_jpush_code': ''}
             if detect_med_type == 1: