Jelajahi Sumber

Merge branch 'master' of http://192.168.136.99:3000/servers/ASJPush

peng 2 tahun lalu
induk
melakukan
e8cbc78b12
2 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 2 1
      Service/HuaweiPushService/HuaweiPushService.py
  2. 3 3
      Service/PushService.py

+ 2 - 1
Service/HuaweiPushService/HuaweiPushService.py

@@ -18,7 +18,7 @@ class HuaweiPushObject:
         push_admin.initialize_app(self.app_id, self.app_secret)
 
     def send_push_notify_message(self, token_val, msg_title, msg_text, image_url=None, uid='', channel='', n_time='',
-                                 event_type='', app_bundle_id=''):
+                                 event_type='', app_bundle_id='', appBundleId=''):
         """
         发送推送消息
         @param token_val: 手机推送token
@@ -27,6 +27,7 @@ class HuaweiPushObject:
         @param n_time: 不使用
         @param event_type: 不使用
         @param app_bundle_id: 不使用
+        @param appBundleId: 不使用
         @param uid: 不使用
         @param channel: 不使用
         @param msg_text: 不使用

+ 3 - 3
Service/PushService.py

@@ -307,15 +307,15 @@ class PushObject:
                 .reg_id(token_val) \
                 .title(msg_title) \
                 .content(msg_text) \
-                .push_mode(1) \
+                .push_mode(0) \
                 .notify_type(3) \
                 .skip_type(1) \
                 .request_id(m_code) \
-                .classification(0) \
+                .classification(1) \
                 .client_custom_map(**push_data) \
                 .message_dict()
             rec = sender_send.send(message)
-            logger.info('vivo推送结果:{}'.format(rec))
+            logger.info('vivo推送结果:{}, regId{}, 设备uid:{}, 用户昵称:{}'.format(rec, token_val, uid, nickname))
             return rec
         except Exception as e:
             logger.info('vivo推送异常:{}'.format(e))