Эх сурвалжийг харах

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

locky 2 жил өмнө
parent
commit
4dc2005682

+ 8 - 1
Service/HuaweiPushService/HuaweiPushService.py

@@ -17,12 +17,19 @@ 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, 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
         @param msg_title: 标题
         @param msg_text: 内容
+        @param n_time: 不使用
+        @param event_type: 不使用
+        @param app_bundle_id: 不使用
+        @param uid: 不使用
+        @param channel: 不使用
+        @param msg_text: 不使用
         @param image_url: 图片链接
         @return:
         """