[更新]修正微信API文件

This commit is contained in:
Anyon 2017-09-06 16:30:35 +08:00
parent 67e784525f
commit 0cd19a93b1

View File

@ -218,7 +218,7 @@ class Api extends Controller
return false;
}
// 标识推荐关系
$data = ['spread_by' => $fans['openid'], 'spread_at' => date('Y-m-d H:i:s')];
$data = ['spread_openid' => $fans['openid'], 'spread_at' => date('Y-m-d H:i:s')];
Db::name('WechatFans')->where("openid='{$this->openid}' and (spread_openid is null or spread_openid='')")->setField($data);
// @todo 推荐成功的奖励
}