1.检验是否实名认证
This commit is contained in:
parent
b72dc7280b
commit
69a18c0b56
@ -192,6 +192,16 @@ class User extends Api
|
||||
}
|
||||
}
|
||||
|
||||
public function updateRealUser(){
|
||||
$user_id = $this->user_id;
|
||||
$post = $this->request->post();
|
||||
$result = UserLogic::updateRealUserMsg($user_id,$post);
|
||||
if($result){
|
||||
return JsonServer::success("保存成功");
|
||||
}else{
|
||||
return JsonServer::error("保存失败");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 更换手机号 / 绑定手机号
|
||||
|
||||
@ -390,6 +390,14 @@ class UserLogic extends Logic
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public static function updateRealUserMsg($user_id,$post){
|
||||
$user = User::where("id",$user_id)->update(['real_name'=>$post['real_name'],'id_card'=>$post['id_card']]);
|
||||
if($user){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//修改手机号
|
||||
public static function changeMobile($user_id, $data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user