|
@@ -18,7 +18,7 @@ import requests
|
|
|
|
|
|
from AnsjerPush.Config.aiConfig import DEVICE_EVENT_TYPE, ALGORITHM_COMBO_TYPES
|
|
|
from AnsjerPush.config import CONFIG_INFO, CONFIG_CN, MULTI_CHANNEL_TYPE_LIST, SYS_EVENT_TYPE_LIST, AWS_ACCESS_KEY_ID, \
|
|
|
- AWS_SECRET_ACCESS_KEY, EVENT_DICT, EVENT_DICT_CN
|
|
|
+ AWS_SECRET_ACCESS_KEY, EVENT_DICT, EVENT_DICT_CN, XM_PUSH_CHANNEL_ID
|
|
|
from AnsjerPush.config import XMPUSH_CONFIG, OPPOPUSH_CONFIG
|
|
|
from Model.models import UidPushModel, SysMsgModel, DeviceSharePermission, DeviceChannelUserSet, \
|
|
|
DeviceChannelUserPermission, UidSetModel, Device_Info
|
|
@@ -331,9 +331,10 @@ class DevicePushService:
|
|
|
huawei_push_object.send_push_notify_message(**push_kwargs)
|
|
|
elif push_type == 4: # android xmpush
|
|
|
if param['event_type'] in [606, 607]:
|
|
|
- channel_id = 111934
|
|
|
+ push_channel = 'push_to_talk'
|
|
|
else:
|
|
|
- channel_id = 104551
|
|
|
+ push_channel = 'device_reminder'
|
|
|
+ channel_id = XM_PUSH_CHANNEL_ID[push_channel]
|
|
|
cls.do_xmpush(channel_id=channel_id, **push_kwargs)
|
|
|
push_result = True
|
|
|
elif push_type == 5: # android vivopush
|