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