From abc6e17bfed7d5a8d4a2562399ed9a056fd00676 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 24 May 2017 16:25:34 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E6=B7=BB=E5=8A=A0=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1API=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Api.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/application/wechat/controller/Api.php b/application/wechat/controller/Api.php index da362a818..f51088c38 100644 --- a/application/wechat/controller/Api.php +++ b/application/wechat/controller/Api.php @@ -64,13 +64,21 @@ class Api extends Controller { switch ($this->wechat->getRev()->getRevType()) { case WechatReceive::MSGTYPE_TEXT: $keys = $this->wechat->getRevContent(); - return $this->_keys("wechat_keys#keys#{$keys}"); + $reply = $this->_keys("wechat_keys#keys#{$keys}"); + p($reply); + return $reply; case WechatReceive::MSGTYPE_EVENT: - return $this->_event(); + $reply = $this->_event(); + p($reply); + return $reply; case WechatReceive::MSGTYPE_IMAGE: - return $this->_image(); + $reply = $this->_image(); + p($reply); + return $reply; case WechatReceive::MSGTYPE_LOCATION: - return $this->_location(); + $reply = $this->_location(); + p($reply); + return $reply; default: return 'success'; }