diff --git a/mens-api/src/main/java/kr/xit/biz/kt/service/BizKtMmsService.java b/mens-api/src/main/java/kr/xit/biz/kt/service/BizKtMmsService.java index 0a9921a..4c8616e 100644 --- a/mens-api/src/main/java/kr/xit/biz/kt/service/BizKtMmsService.java +++ b/mens-api/src/main/java/kr/xit/biz/kt/service/BizKtMmsService.java @@ -3,6 +3,7 @@ package kr.xit.biz.kt.service; import java.util.ArrayList; import java.util.List; import kr.xit.biz.cmm.service.ICmmEnsCacheService; +import kr.xit.biz.common.ApiConstants.SignguCode; import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO; import kr.xit.biz.ens.model.cmm.CmmEnsRlaybsnmDTO; import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse; @@ -45,8 +46,10 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm private static final String profile = System.getProperty("spring.profiles.active"); private static final int MAX_KT_SEND_CNT = 100; - @Value("${contract.kt.api.callback-url}") - private String CALLBACK_URL; + @Value("${contract.kt.api.dp-callback-url}") + private String DP_CALLBACK_URL; + @Value("${contract.kt.api.me-callback-url}") + private String ME_CALLBACK_URL; private final IKtMmsService ktMmsService; private final ICmmEnsCacheService cacheService; @@ -102,7 +105,7 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm //.docHash(Base64.getEncoder().encodeToString("db".getBytes(StandardCharsets.UTF_8))) .docHash("db") .mmsTitle("") - .url(CALLBACK_URL) //distInfoCrtYn - N이면 필수 + .url(SignguCode.TRAFFIC.getCode().equals(reqDTO.getSignguCode())? DP_CALLBACK_URL : ME_CALLBACK_URL) //distInfoCrtYn - N이면 필수 .mmsBinary("") .fileFmat("") .mdn("") diff --git a/mens-api/src/main/java/kr/xit/biz/nice/service/BizNiceCiService.java b/mens-api/src/main/java/kr/xit/biz/nice/service/BizNiceCiService.java index 3496f7f..95e084f 100644 --- a/mens-api/src/main/java/kr/xit/biz/nice/service/BizNiceCiService.java +++ b/mens-api/src/main/java/kr/xit/biz/nice/service/BizNiceCiService.java @@ -243,18 +243,10 @@ public class BizNiceCiService extends EgovAbstractServiceImpl implements IBizNic } switch(wrkDiv){ - case TOKEN: - niceCiMapper.updateNiceCrtfToken(niceDTO); - break; - case PUBLIC_KEY: - niceCiMapper.updateNiceCrtfPublickey(niceDTO); - break; - case SYM_KEY: - niceCiMapper.updateNiceCrtfSymkey(niceDTO); - break; - default: - break; - + case TOKEN -> niceCiMapper.updateNiceCrtfToken(niceDTO); + case PUBLIC_KEY -> niceCiMapper.updateNiceCrtfPublickey(niceDTO); + case SYM_KEY -> niceCiMapper.updateNiceCrtfSymkey(niceDTO); + //default -> ; } // 공개키 정보 캐쉬 삭제