pengzhibo168 5 jaren geleden
bovenliggende
commit
984229f056
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  1. 1 3
      Controller/DetectController.py

+ 1 - 3
Controller/DetectController.py

@@ -356,8 +356,6 @@ class NotificationView(View):
             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
@@ -367,7 +365,7 @@ class NotificationView(View):
                 return
         except Exception as e:
             print(repr(e))
-            return 'yic'
+            return repr(e)
 
 
 # http://test.dvema.com/detect/add?uidToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJQMldOR0pSRDJFSEE1RVU5MTExQSJ9.xOCI5lerk8JOs5OcAzunrKCfCrtuPIZ3AnkMmnd-bPY&n_time=1526845794&channel=1&event_type=51&is_st=0