1
This commit is contained in:
@@ -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([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取验证码图片(密码找回)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user