浏览代码

优化小米推送

peng 11 月之前
父节点
当前提交
6e46455dba
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Controller/TransparentTransmissionPushController.py

+ 1 - 2
Controller/TransparentTransmissionPushController.py

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