mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-23 02:48:34 +08:00
update 优化 注册用户异常报错不正确问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.ruoyi.system.api;
|
||||
|
||||
import com.ruoyi.common.core.exception.ServiceException;
|
||||
import com.ruoyi.common.core.exception.user.UserException;
|
||||
import com.ruoyi.system.api.domain.SysUser;
|
||||
import com.ruoyi.system.api.model.LoginUser;
|
||||
@@ -50,7 +51,7 @@ public interface RemoteUserService {
|
||||
* @param sysUser 用户信息
|
||||
* @return 结果
|
||||
*/
|
||||
Boolean registerUserInfo(SysUser sysUser) throws UserException;
|
||||
Boolean registerUserInfo(SysUser sysUser) throws UserException, ServiceException;
|
||||
|
||||
/**
|
||||
* 通过userId查询用户账户
|
||||
|
||||
@@ -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("当前系统没有开启注册功能");
|
||||
|
||||
Reference in New Issue
Block a user