...
|
...
|
@@ -162,7 +162,12 @@ class BrandController extends WeChatBaseController |
|
|
//点赞ajax接口
|
|
|
public function like()
|
|
|
{
|
|
|
$re = $this->checkUser();
|
|
|
$re=Db::name('users')->where(['open_id'=>session('wechat_user')['id']])->find();
|
|
|
if (!$re['mobile']){
|
|
|
return 3;
|
|
|
}else{
|
|
|
return $re;
|
|
|
}
|
|
|
$param = $this->request->param();
|
|
|
$like = new LikeService();
|
|
|
return $like->like($param['id'], 1, $re['id']);
|
...
|
...
|
|