Browse Source

抛合理的异常

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@4295 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 10 years ago
parent
commit
1e5a8b93cb

+ 3 - 2
src/main/java/com/uas/platform/b2b/service/impl/UserServiceImpl.java

@@ -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("提交的数据有误");