|
|
@ -3,6 +3,7 @@ package kr.xit.biz.kt.service;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import kr.xit.biz.cmm.service.ICmmEnsCacheService;
|
|
|
|
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.CmmEnsRequestDTO;
|
|
|
|
import kr.xit.biz.ens.model.cmm.CmmEnsRlaybsnmDTO;
|
|
|
|
import kr.xit.biz.ens.model.cmm.CmmEnsRlaybsnmDTO;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse;
|
|
|
|
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 String profile = System.getProperty("spring.profiles.active");
|
|
|
|
private static final int MAX_KT_SEND_CNT = 100;
|
|
|
|
private static final int MAX_KT_SEND_CNT = 100;
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${contract.kt.api.callback-url}")
|
|
|
|
@Value("${contract.kt.api.dp-callback-url}")
|
|
|
|
private String 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 IKtMmsService ktMmsService;
|
|
|
|
private final ICmmEnsCacheService cacheService;
|
|
|
|
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(Base64.getEncoder().encodeToString("db".getBytes(StandardCharsets.UTF_8)))
|
|
|
|
.docHash("db")
|
|
|
|
.docHash("db")
|
|
|
|
.mmsTitle("")
|
|
|
|
.mmsTitle("")
|
|
|
|
.url(CALLBACK_URL) //distInfoCrtYn - N이면 필수
|
|
|
|
.url(SignguCode.TRAFFIC.getCode().equals(reqDTO.getSignguCode())? DP_CALLBACK_URL : ME_CALLBACK_URL) //distInfoCrtYn - N이면 필수
|
|
|
|
.mmsBinary("")
|
|
|
|
.mmsBinary("")
|
|
|
|
.fileFmat("")
|
|
|
|
.fileFmat("")
|
|
|
|
.mdn("")
|
|
|
|
.mdn("")
|
|
|
|