DJB 표준 전문 관련 수정
This commit is contained in:
+1
-1
Submodule elink-online-common updated: bf03a97fa3...fef16d1b99
+1
-1
Submodule elink-online-core updated: 658f2a0485...52b968e8f8
+11
-1
@@ -73,7 +73,17 @@ public class KakaopayAdapterErrorMsgHandler extends TemplateCodeConvertAdapterEr
|
|||||||
String jsonStr = (String) responseBody;
|
String jsonStr = (String) responseBody;
|
||||||
if (!StringUtils.isBlank(jsonStr)) {
|
if (!StringUtils.isBlank(jsonStr)) {
|
||||||
JsonNode rootNode = OBJECT_MAPPER.readTree(jsonStr);
|
JsonNode rootNode = OBJECT_MAPPER.readTree(jsonStr);
|
||||||
msgDesc = rootNode.get("error_code").textValue() + "/" + rootNode.get("error_message").textValue();
|
StringBuffer sb = new StringBuffer();
|
||||||
|
JsonNode errorCode = rootNode.get("error_code");
|
||||||
|
if(errorCode != null)
|
||||||
|
sb.append(errorCode.textValue());
|
||||||
|
|
||||||
|
sb.append("/");
|
||||||
|
JsonNode errorMessage = rootNode.get("error_message");
|
||||||
|
if(errorMessage != null)
|
||||||
|
sb.append(errorMessage.textValue());
|
||||||
|
|
||||||
|
msgDesc = sb.toString();
|
||||||
msgCd = "BFEX03216";
|
msgCd = "BFEX03216";
|
||||||
msgCtnt = "참가기관코드 에러입니다.";
|
msgCtnt = "참가기관코드 에러입니다.";
|
||||||
logger.debug("오류 응답 수신 - {}", jsonStr);
|
logger.debug("오류 응답 수신 - {}", jsonStr);
|
||||||
|
|||||||
+4
-3
@@ -7,8 +7,9 @@ import javax.servlet.http.HttpServletResponse;
|
|||||||
|
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
|
|
||||||
import com.eactive.eai.adapter.http.HttpStatusException;
|
|
||||||
import com.eactive.eai.adapter.http.dynamic.HttpAdapterServiceKey;
|
import com.eactive.eai.adapter.http.dynamic.HttpAdapterServiceKey;
|
||||||
|
import com.eactive.eai.adapter.http.dynamic.filter.FilterCryptoException;
|
||||||
|
import com.eactive.eai.adapter.http.dynamic.filter.FilterException;
|
||||||
import com.eactive.eai.adapter.http.dynamic.filter.HttpAdapterFilter;
|
import com.eactive.eai.adapter.http.dynamic.filter.HttpAdapterFilter;
|
||||||
import com.eactive.eai.adapter.http.dynamic.filter.InCryptoFilter;
|
import com.eactive.eai.adapter.http.dynamic.filter.InCryptoFilter;
|
||||||
import com.eactive.eai.common.security.keyderiv.KeyDerivationStrategy;
|
import com.eactive.eai.common.security.keyderiv.KeyDerivationStrategy;
|
||||||
@@ -56,7 +57,7 @@ public class DouzoneEncFieldInCryptoFilter implements HttpAdapterFilter {
|
|||||||
setContext(prop);
|
setContext(prop);
|
||||||
return filter.doPreFilter(adptGrpName, adptName, message, setProp(prop), request, response);
|
return filter.doPreFilter(adptGrpName, adptName, message, setProp(prop), request, response);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new HttpStatusException(ERROR_DEC_FAIL, "복호화 오류", HttpStatus.INTERNAL_SERVER_ERROR.value(), e);
|
throw new FilterCryptoException("복호화 오류", ERROR_DEC_FAIL, HttpStatus.INTERNAL_SERVER_ERROR.value(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,7 +68,7 @@ public class DouzoneEncFieldInCryptoFilter implements HttpAdapterFilter {
|
|||||||
setContext(prop);
|
setContext(prop);
|
||||||
return filter.doPostFilter(adptGrpName, adptName, resultMessage, setProp(prop), request, response);
|
return filter.doPostFilter(adptGrpName, adptName, resultMessage, setProp(prop), request, response);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new HttpStatusException(ERROR_ENC_FAIL, "암호화 오류", HttpStatus.INTERNAL_SERVER_ERROR.value(), e);
|
throw new FilterCryptoException("암호화 오류", ERROR_ENC_FAIL, HttpStatus.INTERNAL_SERVER_ERROR.value(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -156,6 +156,13 @@ public class StandardMessageCoordinatorDJB extends DefaultStandardMessageCoordin
|
|||||||
standardMessage.setData(HEAD_MESG_RSPN_DT, now.format(FMT_DATE));
|
standardMessage.setData(HEAD_MESG_RSPN_DT, now.format(FMT_DATE));
|
||||||
standardMessage.setData(HEAD_MESG_RSPN_TIME, now.format(FMT_TIME_MILLIS));
|
standardMessage.setData(HEAD_MESG_RSPN_TIME, now.format(FMT_TIME_MILLIS));
|
||||||
|
|
||||||
|
|
||||||
|
StandardItem msgListRowCnt = standardMessage.findItem(StandardMessageCoordinatorDJB.MSG_LIST_ROWCNT);
|
||||||
|
if (msgListRowCnt == null || "0".equals(msgListRowCnt.getValue()) || "".equals(msgListRowCnt.getValue())) {
|
||||||
|
StandardItem msgPart = standardMessage.findItem("MSG");
|
||||||
|
msgPart.getChilds().remove("MSG_LIST");
|
||||||
|
}
|
||||||
|
|
||||||
makeupDataScopLen(standardMessage, charset);
|
makeupDataScopLen(standardMessage, charset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user