|
@@ -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
|