update 优化 注册用户异常报错不正确问题

This commit is contained in:
疯狂的狮子Li
2023-08-16 10:49:02 +08:00
parent c298360227
commit 294a85eb43
2 changed files with 3 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ public class RemoteUserServiceImpl implements RemoteUserService {
}
@Override
public Boolean registerUserInfo(SysUser sysUser) {
public Boolean registerUserInfo(SysUser sysUser) throws UserException, ServiceException {
String username = sysUser.getUserName();
if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser")))) {
throw new ServiceException("当前系统没有开启注册功能");