|
@@ -430,9 +430,13 @@ class NotificationView(View):
|
|
extras=push_data)
|
|
extras=push_data)
|
|
push.notification = jpush.notification(android=android)
|
|
push.notification = jpush.notification(android=android)
|
|
push.platform = jpush.all_
|
|
push.platform = jpush.all_
|
|
- res = push.send()
|
|
|
|
- print(res)
|
|
|
|
- return res.status_code
|
|
|
|
|
|
+ try:
|
|
|
|
+ res = push.send()
|
|
|
|
+ print(res)
|
|
|
|
+ status_code = res.status_code
|
|
|
|
+ except:
|
|
|
|
+ status_code = 100
|
|
|
|
+ return status_code
|
|
# try:
|
|
# try:
|
|
# res = push.send()
|
|
# res = push.send()
|
|
# print(res)
|
|
# print(res)
|