pengzhibo168 %!s(int64=5) %!d(string=hai) anos
pai
achega
984229f056
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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)
             res = cli.push(n=n, device_token=token_val, topic=appBundleId)
             print(res.status_code)
             print(res.status_code)
 
 
-            return res.status_code
-
             if res.status_code == 200:
             if res.status_code == 200:
                 print('apns push success')
                 print('apns push success')
                 return
                 return
@@ -367,7 +365,7 @@ class NotificationView(View):
                 return
                 return
         except Exception as e:
         except Exception as e:
             print(repr(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
 # http://test.dvema.com/detect/add?uidToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJQMldOR0pSRDJFSEE1RVU5MTExQSJ9.xOCI5lerk8JOs5OcAzunrKCfCrtuPIZ3AnkMmnd-bPY&n_time=1526845794&channel=1&event_type=51&is_st=0