Selaa lähdekoodia

一键通话使用配置数据

locky 1 vuosi sitten
vanhempi
commit
8e1f12aae9

+ 1 - 1
Service/DevicePushService.py

@@ -588,7 +588,7 @@ class DevicePushService:
         android 国内oppo APP消息提醒推送
         """
         if event_type in [606, 607]:
-            channel_id = 111934
+            channel_id = XM_PUSH_CHANNEL_ID['push_to_talk']
         app_key = OPPOPUSH_CONFIG[appBundleId]['Key']
         master_secret = OPPOPUSH_CONFIG[appBundleId]['Secret']
         url = 'https://api.push.oppomobile.com/'

+ 2 - 2
Service/HuaweiPushService/HuaweiPushService.py

@@ -1,6 +1,6 @@
 import json
 
-from AnsjerPush.config import LOGGER
+from AnsjerPush.config import LOGGER, XM_PUSH_CHANNEL_ID
 from Service.HuaweiPushService import push_admin
 from Service.HuaweiPushService.push_admin import messaging
 
@@ -149,7 +149,7 @@ class HuaweiPushObject:
         if int(event_type) in [606, 607]:
             sound = '/raw/phone_call'
             default_sound = False
-            channel_id = '111934'
+            channel_id = str(XM_PUSH_CHANNEL_ID['push_to_talk'])
         else:
             sound = '/raw/shake'
             default_sound = True