|
|
@ -82,7 +82,9 @@ public class ClientSettleConfig {
|
|
|
|
throw new BadRequestException("PARAM_ERROR:Invalid Account Name format");
|
|
|
|
throw new BadRequestException("PARAM_ERROR:Invalid Account Name format");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!sandboxMode) {
|
|
|
|
if (sandboxMode) {
|
|
|
|
|
|
|
|
bankQueryInfo = new JSONObject();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
bankQueryInfo = getBankInfo(bsbNo);
|
|
|
|
bankQueryInfo = getBankInfo(bsbNo);
|
|
|
|
if (bankQueryInfo == null || bankQueryInfo.isEmpty() || !bankQueryInfo.getBooleanValue("valid")) {
|
|
|
|
if (bankQueryInfo == null || bankQueryInfo.isEmpty() || !bankQueryInfo.getBooleanValue("valid")) {
|
|
|
|
throw new BadRequestException("PARAM_ERROR:BSB No is invalid");
|
|
|
|
throw new BadRequestException("PARAM_ERROR:BSB No is invalid");
|
|
|
@ -114,6 +116,8 @@ public class ClientSettleConfig {
|
|
|
|
HttpRequestResult result = new HttpRequestGenerator(url, RequestMethod.GET).execute();
|
|
|
|
HttpRequestResult result = new HttpRequestGenerator(url, RequestMethod.GET).execute();
|
|
|
|
if (result.isSuccess()) {
|
|
|
|
if (result.isSuccess()) {
|
|
|
|
res = result.getResponseContentJSONObj();
|
|
|
|
res = result.getResponseContentJSONObj();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
logger.error("Request bsb info error {}-->{}", bsb_no, result.getResponseContentString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (IOException e) {
|
|
|
|
} catch (IOException e) {
|
|
|
|
logger.error(e.getMessage(), e);
|
|
|
|
logger.error(e.getMessage(), e);
|
|
|
|