|
|
@@ -234,7 +234,8 @@ public class UserServiceImpl implements UserService {
|
|
|
params.put("data", FlexJsonUtils.toJson(new AccountInfo(newUserInfo)));
|
|
|
Response response = HttpUtil.sendPostRequest(HostConstant.MANAGE_INNER_HOST + "/public/account", params, true);
|
|
|
if (response.getStatusCode() == HttpStatus.OK.value()) {
|
|
|
- List<Map<String, Object>> resultMap = FlexJsonUtils.fromJsonArray(response.getResponseText(), HashMap.class);
|
|
|
+ List<Map<String, Object>> resultMap = FlexJsonUtils
|
|
|
+ .fromJsonArray(response.getResponseText(), HashMap.class);
|
|
|
if (resultMap.size() > 0) {
|
|
|
if ("true".equals(String.valueOf(resultMap.get(0).get("ok")))) {
|
|
|
return resultMap.get(0);
|
|
|
@@ -449,7 +450,7 @@ public class UserServiceImpl implements UserService {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- throw new IllegalArgumentException("验证码已过期,请重新发送邮件");
|
|
|
+ throw new IllegalOperatorException("验证码已过期,请重新发送邮件");
|
|
|
}
|
|
|
} else {
|
|
|
throw new IllegalArgumentException("提交的数据有误");
|