chenjunkai 5 жил өмнө
parent
commit
25d6d65793

+ 2 - 1
Controller/DetectController.py

@@ -452,7 +452,8 @@ class NotificationView(View):
             n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
             res = cli.push(n=n, device_token=token_val, topic=appBundleId)
             # assert res.status_code == 200, res.reason
-            # assert res.apns_id 
+            # assert res.apns_id
+            print(res.status_code)
             if res.status_code == 200:
                 return response.json(0)
             else: