|
@@ -359,7 +359,7 @@ class NotificationView(View):
|
|
|
n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
|
|
|
res = cli.push(n=n, device_token=token_val, topic=appBundleId)
|
|
|
print(res.status_code)
|
|
|
-
|
|
|
+ return res.status_code
|
|
|
if res.status_code == 200:
|
|
|
print('apns push success')
|
|
|
return
|