pengzhibo168 há 5 anos atrás
pai
commit
8972ab7c82
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      Controller/DetectController.py

+ 1 - 2
Controller/DetectController.py

@@ -189,8 +189,7 @@ class NotificationView(View):
                 elif push_type == 1:  # android gcm
                     self.do_fcm(**kwag_args)
                 elif push_type == 2:  # android jpush
-                    self.do_jpush(**kwag_args)
-            # return JsonResponse(status=200, data={'code': 0, '状态:': push_type})
+                    return JsonResponse(status=200, data={'code': 0, '状态:': self.do_jpush(**kwag_args)})
             # 以下是存库
             userID_id = up["userID_id"]
             int_is_st = int(is_st)