pengzhibo168 5 năm trước cách đây
mục cha
commit
f221e4a16a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/DetectController.py

+ 1 - 1
Controller/DetectController.py

@@ -359,7 +359,7 @@ class NotificationView(View):
             n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
             res = cli.push(n=n, device_token=token_val, topic=appBundleId)
             print(res.status_code)
-
+            return res.status_code
             if res.status_code == 200:
                 print('apns push success')
                 return