|
@@ -11,9 +11,8 @@ from django.views import View
|
|
|
from Model.models import UidPushModel
|
|
|
from Object.ResponseObject import ResponseObject
|
|
|
from Service.PushService import PushObject
|
|
|
-from AnsjerPush.config import XM_PUSH_CHANNEL_ID, HONORPUSH_CONFIG
|
|
|
+from AnsjerPush.config import XM_PUSH_CHANNEL_ID, HONORPUSH_CONFIG, LOGGER
|
|
|
from Service.HuaweiPushService.push_admin import messaging
|
|
|
-from AnsjerPush.config import LOGGER
|
|
|
|
|
|
|
|
|
class TransparentTransmissionPushView(View):
|
|
@@ -37,6 +36,7 @@ class TransparentTransmissionPushView(View):
|
|
|
|
|
|
@staticmethod
|
|
|
def logout_push(request_dict, response):
|
|
|
+ LOGGER.info('进入登出推送接口,参数:{}'.format(request_dict))
|
|
|
push_token = request_dict.get('push_token', None)
|
|
|
user_id = request_dict.get('user_id', None)
|
|
|
if not all([push_token, user_id]):
|
|
@@ -46,6 +46,7 @@ class TransparentTransmissionPushView(View):
|
|
|
'token_val', 'appBundleId', 'push_type', 'jg_token_val').distinct()
|
|
|
if not uid_push_qs.exists():
|
|
|
return response.json(173)
|
|
|
+ LOGGER.info('推送列表:{}'.format(uid_push_qs))
|
|
|
push_thread = threading.Thread(target=TransparentTransmissionPushView.thread_push,
|
|
|
args=(uid_push_qs, user_id, '强制登出', '强制登出', 705))
|
|
|
push_thread.start()
|