Bläddra i källkod

修复华为发送推送消息函数接收参数问题

locky 2 år sedan
förälder
incheckning
a62489a32f
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Service/HuaweiPushService/HuaweiPushService.py

+ 2 - 2
Service/HuaweiPushService/HuaweiPushService.py

@@ -17,8 +17,8 @@ class HuaweiPushObject:
         """init sdk app"""
         push_admin.initialize_app(self.app_id, self.app_secret)
 
-    def send_push_notify_message(self, token_val, msg_title, msg_text, uid, channel, n_time, event_type, app_bundle_id,
-                                 image_url=None):
+    def send_push_notify_message(self, token_val, msg_title, msg_text, uid='', channel='', n_time='', event_type='',
+                                 app_bundle_id='', image_url=None):
         """
         发送推送消息
         @param token_val: 手机推送token