find($userId); $res = $user->fill($data)->save(); if (!$res) { throw new ErrorCodeException(ErrorCode::USER_INFO_UPDATE_ERROR); } return $res; } public function check($userId) { // TODO: Implement check() method. } public function undo($userId) { // TODO: Implement undo() method. } }