作者 chencheng

0529-121

... ... @@ -251,14 +251,14 @@ class Client extends Api
$w['user_id'] = $user_id;
$w['code'] = $param['code'];
$w['activity_id'] = $param['activity_id'];
$r = Db::name('user_synthesis')->where($w)->find();
$r = Db::name('verification_user_synthesis')->where($w)->find();
//有 则 返回 无 则新增
if(empty($r)){
$url = (new \app\api\controller\v1\Base())->url_h5.'?'.http_build_query($param);
$res = (new \app\api\controller\v1\Index())->build($url);
$w['create_at'] = time();
$w['url'] = request()->domain().$res;
Db::name('user_synthesis')->insert($w);
Db::name('verification_user_synthesis')->insert($w);
$res = $w['url'];
}else{
$res = $r['url'];
... ...