pengzhibo168 5 tahun lalu
induk
melakukan
f598a39e7b
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      Controller/DetectController.py

+ 2 - 0
Controller/DetectController.py

@@ -352,6 +352,8 @@ class NotificationView(View):
                          "received_at": n_time, "sound": "sound.aif", "uid": uid, "zpush": "1", "channel": channel}
                          "received_at": n_time, "sound": "sound.aif", "uid": uid, "zpush": "1", "channel": channel}
             alert = apns2.PayloadAlert(body=msg_text, title=msg_title)
             alert = apns2.PayloadAlert(body=msg_text, title=msg_title)
             payload = apns2.Payload(alert=alert, custom=push_data)
             payload = apns2.Payload(alert=alert, custom=push_data)
+
+            return uid, channel, appBundleId, token_val, event_type, n_time, msg_title,msg_text
             n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
             n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
             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)