|
@@ -184,7 +184,7 @@ class NotificationView(View):
|
|
# return response.json(444)
|
|
# return response.json(444)
|
|
utko = UidTokenObject(uidToken)
|
|
utko = UidTokenObject(uidToken)
|
|
uid = utko.UID
|
|
uid = utko.UID
|
|
- uaqs = UID_App.objects.filter(uid=uid). \
|
|
|
|
|
|
+ uaqs = UID_App.objects.filter(uid=uid, status=1). \
|
|
values('token_val', 'app_type', 'appBundleId', 'push_type', 'uid', 'userID_id', 'userID__NickName')
|
|
values('token_val', 'app_type', 'appBundleId', 'push_type', 'uid', 'userID_id', 'userID__NickName')
|
|
if uaqs.exists():
|
|
if uaqs.exists():
|
|
for ua in uaqs:
|
|
for ua in uaqs:
|
|
@@ -264,7 +264,6 @@ class NotificationView(View):
|
|
token_val = uaql['token_val']
|
|
token_val = uaql['token_val']
|
|
uid = uaql['uid']
|
|
uid = uaql['uid']
|
|
|
|
|
|
-
|
|
|
|
response = ResponseObject()
|
|
response = ResponseObject()
|
|
app_key = jpush_config[appBundleId]['Key']
|
|
app_key = jpush_config[appBundleId]['Key']
|
|
master_secret = jpush_config[appBundleId]['Secret']
|
|
master_secret = jpush_config[appBundleId]['Secret']
|