This commit is contained in:
wangjinlei
2022-08-31 09:43:27 +08:00
parent 29c6b4c627
commit cbcd329ff9
5 changed files with 123 additions and 12 deletions

View File

@@ -704,6 +704,22 @@ class User extends Controller
}
}
/**
* 修改用户备注
*/
public function editRemarkForUser(){
$data = $this->request->post();
$rule = new Validate([
'user_id'=>'require|number',
'remark'=>'require'
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$this->user_obj->where('user_id',$data['user_id'])->update(['remark'=>$data['remark']]);
return jsonSuccess([]);
}
/**
* 获取验证码图片(密码找回)
*/