[修改] 修改用户时 修改密码问题
This commit is contained in:
@@ -65,8 +65,9 @@ public class UserEOController extends BaseController<UserEO> {
|
|||||||
String data = new String(Base64.decodeBase64(requestString), StandardCharsets.UTF_8);
|
String data = new String(Base64.decodeBase64(requestString), StandardCharsets.UTF_8);
|
||||||
JsonElement element = parser.parse(data);
|
JsonElement element = parser.parse(data);
|
||||||
UserEO eo = gson.fromJson(element, UserEO.class);
|
UserEO eo = gson.fromJson(element, UserEO.class);
|
||||||
|
if(StringUtils.isEmpty(eo.getUsid())){
|
||||||
eo.setPassword(SysConstants.DEFAULT_PASSWORD);
|
eo.setPassword(SysConstants.DEFAULT_PASSWORD);
|
||||||
|
}
|
||||||
if (StringUtils.isBlank(eo.getAccount())) {
|
if (StringUtils.isBlank(eo.getAccount())) {
|
||||||
return Result.error("用户名不能为空!");
|
return Result.error("用户名不能为空!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user