Ver Fonte

oppo推送增加额外数据

peng há 2 anos atrás
pai
commit
d479e306fe
2 ficheiros alterados com 4 adições e 2 exclusões
  1. 2 1
      Service/DevicePushService.py
  2. 2 1
      Service/PushService.py

+ 2 - 1
Service/DevicePushService.py

@@ -451,7 +451,8 @@ class DevicePushService:
             "notification": {
                 "title": msg_title,
                 "content": msg_text,
-                'channel_id': channel_id
+                'channel_id': channel_id,
+                'action_parameters': extra_data
             }
         }
         push_data = {

+ 2 - 1
Service/PushService.py

@@ -375,7 +375,8 @@ class PushObject:
                 "notification": {
                     "title": msg_title,
                     "content": msg_text,
-                    'channel_id': channel_id
+                    'channel_id': channel_id,
+                    'action_parameters': extra_data
                 }
             }
             push_data = {