作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

接口

... ... @@ -135,10 +135,10 @@ class PublicController extends RestBaseController
->update($userData);
$re=Db::name('user')->where('id',$findThirdPartyUser['user_id'])->find();
if (empty($re['mobile'])){
$this->success("请先手机号注册!", ['token' => $token]);
$this->success(['msg'=>'请先手机号注册!','code'=>'40001'], ['token' => $token]);
}
if ($re['status']!=1){
$this->success("请先填写用户信息!", ['token' => $token]);
$this->success(['msg'=>'请先填写用户信息!','code'=>'40002'], ['token' => $token]);
}
$this->success("登录成功!", ['token' => $token]);
} else {
... ... @@ -174,10 +174,10 @@ class PublicController extends RestBaseController
$token = cmf_generate_user_token($userId, 'wxapp');
$re=Db::name('user')->where('id',$userId)->find();
if (empty($re['mobile'])){
$this->success("请先手机号注册!", ['token' => $token]);
$this->success(['msg'=>'请先手机号注册!','code'=>'40001'], ['token' => $token]);
}
if ($re['status']!=1){
$this->success("请先填写用户信息!", ['token' => $token]);
$this->success(['msg'=>'请先填写用户信息!','code'=>'40002'], ['token' => $token]);
}
$this->success("登陆成功!", ['token' => $token]);
}else{
... ...