[更新]微信模块开发中

This commit is contained in:
邹景立 2017-04-05 12:07:46 +08:00
parent eac1022a3e
commit 32524e95e9

View File

@ -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 推荐成功的奖励