1.检验是否实名认证

This commit is contained in:
xucong 2024-09-30 16:32:37 +08:00
parent b72dc7280b
commit 69a18c0b56
2 changed files with 18 additions and 0 deletions

@ -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)