locky 1 rok temu
rodzic
commit
107658f016
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      Service/DevicePushService.py

+ 2 - 3
Service/DevicePushService.py

@@ -138,14 +138,13 @@ class DevicePushService:
         redis_obj.set_data(key=name, val=1, expire=detect_interval - 5)
 
     @classmethod
-    def save_msg_push(cls, uid_set_push_list, **params):
+    def save_msg_push(cls, **params):
         """
         推送消息,返回推送数据列表
         @param uid_set_push_list: redis对象
         @param params: 推送参数
         @return: dict
         """
-        LOGGING.info('uid_set_push_list:{}'.format(uid_set_push_list))
         new_device_info_list = []
         sys_msg_list = []
         userID_ids = []
@@ -157,7 +156,7 @@ class DevicePushService:
             params['event_tag'] = cls.get_event_tag(params['ai_type'], params['event_type'], params['detection'])
             is_app_push = True if params['event_tag'] in [606, 607] else \
                 cls.is_send_app_push(params['event_type'], params['event_tag'], params['app_push_config'])
-            for up in uid_set_push_list:
+            for up in params['uid_set_push_list']:
                 appBundleId = up['appBundleId']
                 token_val = up['token_val']
                 lang = up['lang']