From 20a613dbcbe78948442443b04a0df71d67296541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 21 Apr 2017 12:37:26 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=BE=AE=E4=BF=A1=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 2 +- application/wechat/controller/Api.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/common.php b/application/common.php index 3eff2c3b5..120828764 100644 --- a/application/common.php +++ b/application/common.php @@ -50,7 +50,7 @@ function & load_wechat($type = '') { 'ssl_key' => sysconf('wechat_cert_key'), 'cachepath' => CACHE_PATH . 'wxpay' . DS, ]; - $wechat[$index] = &Loader::get($type, $config); + $wechat[$index] = Loader::get($type, $config); } return $wechat[$index]; } diff --git a/application/wechat/controller/Api.php b/application/wechat/controller/Api.php index 450073db5..2902a8f53 100644 --- a/application/wechat/controller/Api.php +++ b/application/wechat/controller/Api.php @@ -18,8 +18,8 @@ use service\DataService; use service\WechatService; use Wechat\WechatReceive; use think\Controller; -use think\Db; use think\Log; +use think\Db; /** * 微信接口控制器 @@ -151,18 +151,18 @@ class Api extends Controller { protected function _event() { $event = $this->wechat->getRevEvent(); switch (strtolower($event['event'])) { - /* 关注事件 */ + /* 粉丝关注事件 */ case 'subscribe': $this->_syncFans(true); if (!empty($event['key']) && stripos($event['key'], 'qrscene_') !== false) { $this->_spread(preg_replace('|^.*?(\d+).*?$|', '$1', $event['key'])); } return $this->_keys('wechat_keys#keys#subscribe'); - /* 取消关注 */ + /* 粉丝取消关注 */ case 'unsubscribe': $this->_syncFans(false); exit('success'); - /* 点击菜单 */ + /* 点击菜单事件 */ case 'click': return $this->_keys($event['key']); /* 扫码推事件 */