From 32524e95e93754ff16b3e35364bee6b1c8782a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 5 Apr 2017 12:07:46 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=BE=AE=E4=BF=A1=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=BC=80=E5=8F=91=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/wechat/controller/Api.php b/application/wechat/controller/Api.php index f8f0d5444..102808cb6 100644 --- a/application/wechat/controller/Api.php +++ b/application/wechat/controller/Api.php @@ -194,7 +194,7 @@ class Api extends Controller { } // 标识推荐关系 Db::name('WechatFans') - ->where('appid', $this->appid) + ->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 推荐成功的奖励