|
@@ -10,6 +10,7 @@ from django.views import View
|
|
|
|
|
|
from Model.models import UidPushModel, GatewayPush
|
|
from Model.models import UidPushModel, GatewayPush
|
|
from Object.ResponseObject import ResponseObject
|
|
from Object.ResponseObject import ResponseObject
|
|
|
|
+from Service.CommonService import CommonService
|
|
from Service.HuaweiPushService.HuaweiPushService import HuaweiPushObject
|
|
from Service.HuaweiPushService.HuaweiPushService import HuaweiPushObject
|
|
from Service.PushService import PushObject
|
|
from Service.PushService import PushObject
|
|
from AnsjerPush.config import XM_PUSH_CHANNEL_ID, HONORPUSH_CONFIG, LOGGER, APP_MAPPING
|
|
from AnsjerPush.config import XM_PUSH_CHANNEL_ID, HONORPUSH_CONFIG, LOGGER, APP_MAPPING
|
|
@@ -57,6 +58,12 @@ class TransparentTransmissionPushView(View):
|
|
return response.json(173)
|
|
return response.json(173)
|
|
uid_push_list = list(uid_push_qs)
|
|
uid_push_list = list(uid_push_qs)
|
|
LOGGER.info('{}推送列表:{}'.format(user_id, uid_push_list))
|
|
LOGGER.info('{}推送列表:{}'.format(user_id, uid_push_list))
|
|
|
|
+
|
|
|
|
+ # 忽略servers@ansjer.com账号
|
|
|
|
+ username = CommonService.get_username(user_id)
|
|
|
|
+ if username == 'servers@ansjer.com':
|
|
|
|
+ return response.json(0)
|
|
|
|
+
|
|
push_thread = threading.Thread(target=TransparentTransmissionPushView.thread_push,
|
|
push_thread = threading.Thread(target=TransparentTransmissionPushView.thread_push,
|
|
args=(uid_push_list, user_id, '强制登出', '强制登出', 705))
|
|
args=(uid_push_list, user_id, '强制登出', '强制登出', 705))
|
|
push_thread.start()
|
|
push_thread.start()
|