|
@@ -13,7 +13,6 @@ from Object.ResponseObject import ResponseObject
|
|
|
from Service.HuaweiPushService.HuaweiPushService import HuaweiPushObject
|
|
|
from Service.PushService import PushObject
|
|
|
from AnsjerPush.config import XM_PUSH_CHANNEL_ID, HONORPUSH_CONFIG, LOGGER
|
|
|
-from Service.HuaweiPushService.push_admin import messaging
|
|
|
import logging
|
|
|
|
|
|
ERROR_INFO_LOGGER = logging.getLogger('error_info')
|
|
@@ -113,7 +112,7 @@ class TransparentTransmissionPushView(View):
|
|
|
huawei_push_object = HuaweiPushObject()
|
|
|
huawei_push_object.huawei_transparent_transmission(user_id=user_id, **kwargs)
|
|
|
elif push_item['push_type'] == 4: # 小米
|
|
|
- channel_id = XM_PUSH_CHANNEL_ID['push_to_talk']
|
|
|
+ channel_id = XM_PUSH_CHANNEL_ID['single_login']
|
|
|
PushObject.android_xmpush(channel_id=channel_id, **kwargs)
|
|
|
elif push_item['push_type'] in [5, 6]: # vivo, oppo
|
|
|
kwargs['token_val'] = push_item['jg_token_val']
|