From 0bbdf10393407cd1f635b9929860434589fca0a4 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 26 Feb 2018 15:47:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9Receive?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/Contracts/BasicPushEvent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WeChat/Contracts/BasicPushEvent.php b/WeChat/Contracts/BasicPushEvent.php index f4a8e73..205075e 100644 --- a/WeChat/Contracts/BasicPushEvent.php +++ b/WeChat/Contracts/BasicPushEvent.php @@ -173,11 +173,12 @@ class BasicPushEvent /** * 获取公众号推送对象 + * @param null|string $field 指定获取字段 * @return array */ - public function getReceive() + public function getReceive($field = null) { - return $this->receive->get(); + return $this->receive->get($field); } /**