|
@@ -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
|