Selaa lähdekoodia

小米推送跳转类型

locky 5 kuukautta sitten
vanhempi
commit
772398c7f4
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      Service/PushService.py

+ 3 - 0
Service/PushService.py

@@ -343,6 +343,8 @@ class PushObject:
         try:
             url = 'https://api.xmpush.xiaomi.com/v3/message/regid'
             app_secret = XMPUSH_CONFIG[app_bundle_id]
+            # 跳转类型
+            jump_type = CommonService.get_jump_type(event_type)
             data = {
                 'title': msg_title,
                 'description': msg_text,
@@ -360,6 +362,7 @@ class PushObject:
                 'extra.nickname': nickname,
                 'extra.uid': uid,
                 'extra.channel': channel,
+                'jump_type': jump_type
             }
             # if image:
             #     data['extra.notification_style_type'] = 2