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

+ 1 - 1
Controller/DetectController.py

@@ -353,7 +353,7 @@ class NotificationView(View):
             alert = apns2.PayloadAlert(body=msg_text, title=msg_title)
             payload = apns2.Payload(alert=alert, custom=push_data)
 
-            return uid, channel, appBundleId, str(token_val), event_type, n_time, msg_title,msg_text
+            # return uid, channel, appBundleId, str(token_val), event_type, n_time, msg_title,msg_text
             n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
             res = cli.push(n=n, device_token=token_val, topic=appBundleId)
             print(res.status_code)