pengzhibo168 5 年之前
父节点
当前提交
d2adbe8843
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)