From a35c198b79316bf1572f9beb2c7db76cf9645eef Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 24 May 2017 16:43:25 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=BE=AE=E4=BF=A1APi?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Api.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/application/wechat/controller/Api.php b/application/wechat/controller/Api.php index f51088c38..69d3cca4b 100644 --- a/application/wechat/controller/Api.php +++ b/application/wechat/controller/Api.php @@ -63,22 +63,13 @@ class Api extends Controller { // 分别执行对应类型的操作 switch ($this->wechat->getRev()->getRevType()) { case WechatReceive::MSGTYPE_TEXT: - $keys = $this->wechat->getRevContent(); - $reply = $this->_keys("wechat_keys#keys#{$keys}"); - p($reply); - return $reply; + return $this->_keys("WechatKeys#keys#" . $this->wechat->getRevContent()); case WechatReceive::MSGTYPE_EVENT: - $reply = $this->_event(); - p($reply); - return $reply; + return $this->_event(); case WechatReceive::MSGTYPE_IMAGE: - $reply = $this->_image(); - p($reply); - return $reply; + return $this->_image(); case WechatReceive::MSGTYPE_LOCATION: - $reply = $this->_location(); - p($reply); - return $reply; + return $this->_location(); default: return 'success'; }