From 86eb62101dd9a4879c39755985464aa9b16a9324 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 25 Apr 2017 18:11:38 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=9B=BE=E6=96=87=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Api.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/application/wechat/controller/Api.php b/application/wechat/controller/Api.php index 6083080da..d34bf8ce5 100644 --- a/application/wechat/controller/Api.php +++ b/application/wechat/controller/Api.php @@ -123,7 +123,6 @@ class Api extends Controller { return $this->_keys('wechat_keys#keys#default', true); } - /** * 回复图文 * @param int $news_id @@ -137,7 +136,7 @@ class Api extends Controller { 'Title' => $vo['title'], 'Description' => $vo['digest'], 'PicUrl' => $vo['local_url'], - 'Url' => url("@wechat/view/news/id/{$vo['id']}", '', true, true) + 'Url' => url("@wechat/review/index", '', true, true) . "?content={$vo['id']}&type=article", ]; } return $this->wechat->news($newsdata)->reply(); @@ -194,9 +193,9 @@ class Api extends Controller { } // 标识推荐关系 Db::name('WechatFans') - ->where('openid', $this->openid) - ->where('(spread_openid is null or spread_openid="")') - ->setField(['spread_by' => $fans['openid'], 'spread_at' => date('Y-m-d H:i:s')]); + ->where('openid', $this->openid) + ->where('(spread_openid is null or spread_openid="")') + ->setField(['spread_by' => $fans['openid'], 'spread_at' => date('Y-m-d H:i:s')]); // @todo 推荐成功的奖励 }