|
@@ -21,7 +21,8 @@ from django.http import JsonResponse
|
|
|
from django.views.generic.base import View
|
|
|
from pyfcm import FCMNotification
|
|
|
|
|
|
-from AnsjerPush.config import OSS_STS_ACCESS_KEY, OSS_STS_ACCESS_SECRET, DETECT_PUSH_DOMAIN, JPUSH_CONFIG, FCM_CONFIG, APNS_CONFIG, BASE_DIR, APNS_MODE
|
|
|
+from AnsjerPush.config import OSS_STS_ACCESS_KEY, OSS_STS_ACCESS_SECRET, DETECT_PUSH_DOMAIN, JPUSH_CONFIG, FCM_CONFIG, \
|
|
|
+ APNS_CONFIG, BASE_DIR, APNS_MODE
|
|
|
from Model.models import Equipment_Info, UidPushModel, SysMsgModel
|
|
|
from Object.ETkObject import ETkObject
|
|
|
from Object.RedisObject import RedisObject
|
|
@@ -169,7 +170,7 @@ class NotificationView(View):
|
|
|
self.do_fcm(**kwag_args)
|
|
|
elif push_type == 2: # android jpush
|
|
|
self.do_jpush(**kwag_args)
|
|
|
- return JsonResponse(status=200, data={'code': 0, '状态:': push_type})
|
|
|
+ # return JsonResponse(status=200, data={'code': 0, '状态:': push_type})
|
|
|
# 以下是存库
|
|
|
userID_id = up["userID_id"]
|
|
|
int_is_st = int(is_st)
|