pengzhibo168 il y a 5 ans
Parent
commit
10eb5ca61d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      Controller/DetectController.py

+ 2 - 2
Controller/DetectController.py

@@ -187,7 +187,7 @@ class NotificationView(View):
                     # self.do_apns(**kwag_args)
                     do_apns_code = self.do_apns(**kwag_args)
                 elif push_type == 1:  # android gcm
-                    self.do_fcm(**kwag_args)
+                    do_fcm_code = self.do_fcm(**kwag_args)
                 elif push_type == 2:  # android jpush
                     do_jpush_code = self.do_jpush(**kwag_args)
                     # return JsonResponse(status=200, data={'code': 0, '状态:': self.do_jpush(**kwag_args)})
@@ -401,7 +401,7 @@ class NotificationView(View):
                                                    })
         print('fcm push ing')
         print(result)
-        return result
+        return result.status_code
 
     def do_apns(self, uid, channel, appBundleId, token_val, event_type, n_time, msg_title,
                 msg_text):