update 优化 注册用户异常报错不正确问题
parent
8f2859d1a3
commit
be3b6bfac5
|
|
@ -1,5 +1,6 @@
|
||||||
package org.dromara.system.api;
|
package org.dromara.system.api;
|
||||||
|
|
||||||
|
import org.dromara.common.core.exception.ServiceException;
|
||||||
import org.dromara.common.core.exception.user.UserException;
|
import org.dromara.common.core.exception.user.UserException;
|
||||||
import org.dromara.system.api.domain.bo.RemoteUserBo;
|
import org.dromara.system.api.domain.bo.RemoteUserBo;
|
||||||
import org.dromara.system.api.model.LoginUser;
|
import org.dromara.system.api.model.LoginUser;
|
||||||
|
|
@ -62,7 +63,7 @@ public interface RemoteUserService {
|
||||||
* @param remoteUserBo 用户信息
|
* @param remoteUserBo 用户信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
Boolean registerUserInfo(RemoteUserBo remoteUserBo) throws UserException;
|
Boolean registerUserInfo(RemoteUserBo remoteUserBo) throws UserException, ServiceException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过userId查询用户账户
|
* 通过userId查询用户账户
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean registerUserInfo(RemoteUserBo remoteUserBo) {
|
public Boolean registerUserInfo(RemoteUserBo remoteUserBo) throws UserException, ServiceException {
|
||||||
SysUserBo sysUserBo = MapstructUtils.convert(remoteUserBo, SysUserBo.class);
|
SysUserBo sysUserBo = MapstructUtils.convert(remoteUserBo, SysUserBo.class);
|
||||||
String username = sysUserBo.getUserName();
|
String username = sysUserBo.getUserName();
|
||||||
if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser")))) {
|
if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser")))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue