Quellcode durchsuchen

小米推送增加按钮

peng vor 2 Jahren
Ursprung
Commit
8df26e79ca
2 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 3 0
      Service/DevicePushService.py
  2. 3 0
      Service/PushService.py

+ 3 - 0
Service/DevicePushService.py

@@ -542,6 +542,9 @@ class DevicePushService:
             'extra.event_type': event_type,
             'extra.uid': uid,
             'extra.channel': channel,
+            'extra.notification_style_type': 1,
+            'extra.notification_style_button_left_notify_effect': 2,
+            'extra.notification_style_button_left_intent_class': 'com.ansjer.zccloud_a.AJ_MainView.AJ_Home.AJMainActivity'
         }
 
         headers = {

+ 3 - 0
Service/PushService.py

@@ -262,6 +262,9 @@ class PushObject:
                 'extra.nickname': nickname,
                 'extra.uid': uid,
                 'extra.channel': channel,
+                'extra.notification_style_type': 1,
+                'extra.notification_style_button_left_notify_effect': 2,
+                'extra.notification_style_button_left_intent_class': 'com.ansjer.zccloud_a.AJ_MainView.AJ_Home.AJMainActivity'
             }
             # if image:
             #     data['extra.notification_style_type'] = 2