From a0eea84051aad4351e3a6bc999ed5bb2ade83f93 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 2 May 2018 16:34:48 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E6=8E=A5=E5=8F=A3=E5=BC=82=E5=B8=B8=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/api/Push.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/wechat/controller/api/Push.php b/application/wechat/controller/api/Push.php index ee0d400da..320e30e06 100644 --- a/application/wechat/controller/api/Push.php +++ b/application/wechat/controller/api/Push.php @@ -61,7 +61,7 @@ class Push $this->openid = $request->post('openid', '', null); $this->receive = unserialize($request->post('receive', '', null)); if (empty($this->appid) || empty($this->openid) || empty($this->receive)) { - throw new Exception('微信API实例缺失必要参数[appid,openid,event].'); + throw new Exception('微信API实例缺失必要参数[appid,openid,receive].'); } return $this->call($this->appid, $this->openid, $this->receive); } @@ -87,7 +87,7 @@ class Push * @throws \think\Exception * @throws \think\exception\PDOException */ - protected function call($appid, $openid, $revice) + private function call($appid, $openid, $revice) { list($this->appid, $this->openid, $this->receive) = [$appid, $openid, $revice]; if ($this->appid !== WechatService::getAppid()) {