|
@@ -187,11 +187,14 @@ class NotificationView(View):
|
|
|
#推送
|
|
|
if detect_med_type == 2 or detect_med_type == 0:
|
|
|
if push_type == 0: # ios apns
|
|
|
+ print('do_apns')
|
|
|
# self.do_apns(**kwag_args)
|
|
|
do_apns_code = self.do_apns(**kwag_args)
|
|
|
elif push_type == 1: # android gcm
|
|
|
+ print('do_fcm')
|
|
|
do_fcm_code = self.do_fcm(**kwag_args)
|
|
|
elif push_type == 2: # android jpush
|
|
|
+ print('do_jpush')
|
|
|
do_jpush_code = self.do_jpush(**kwag_args)
|
|
|
# return JsonResponse(status=200, data={'code': 0, '状态:': self.do_jpush(**kwag_args)})
|
|
|
# 以下是存库
|
|
@@ -386,7 +389,6 @@ class NotificationView(View):
|
|
|
push.notification = jpush.notification(android=android)
|
|
|
push.platform = jpush.all_
|
|
|
res = push.send()
|
|
|
- print(1111111111111111)
|
|
|
print(res)
|
|
|
return res.status_code
|
|
|
# try:
|