فهرست منبع

Merge branch 'master' of http://192.168.136.45:3000/SERVER/AnsjerPush

chanjunkai 5 سال پیش
والد
کامیت
e3ecfaf79a
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      Controller/DetectController.py

+ 3 - 1
Controller/DetectController.py

@@ -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: