|
|
@ -3,6 +3,8 @@ package kr.xit.biz.mbl.service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import kr.xit.biz.ens.model.cntc.CntcDTO;
|
|
|
|
import kr.xit.biz.ens.model.cntc.CntcDTO;
|
|
|
|
|
|
|
|
import kr.xit.biz.ens.model.kakao.v1.KkopayDocDTO;
|
|
|
|
|
|
|
|
import kr.xit.biz.ens.model.kakao.v2.KkotalkApiDTO;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtCommonDTO;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtCommonDTO;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtTokenDTO;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtTokenDTO;
|
|
|
|
import kr.xit.biz.mbl.mapper.IMobilePageMapper;
|
|
|
|
import kr.xit.biz.mbl.mapper.IMobilePageMapper;
|
|
|
@ -15,8 +17,8 @@ import kr.xit.core.model.IApiResponse;
|
|
|
|
import kr.xit.core.service.AbstractService;
|
|
|
|
import kr.xit.core.service.AbstractService;
|
|
|
|
import kr.xit.core.spring.annotation.TraceLogging;
|
|
|
|
import kr.xit.core.spring.annotation.TraceLogging;
|
|
|
|
import kr.xit.core.support.utils.Checks;
|
|
|
|
import kr.xit.core.support.utils.Checks;
|
|
|
|
import kr.xit.ens.kakao.v1.service.IKkopayEltrcDocService;
|
|
|
|
import kr.xit.ens.kakao.pay.service.IKkopayEltrcDocService;
|
|
|
|
import kr.xit.ens.kakao.v2.service.IKkotalkEltrcDocService;
|
|
|
|
import kr.xit.ens.kakao.talk.service.IKkotalkEltrcDocService;
|
|
|
|
import kr.xit.ens.kt.service.IKtBcService;
|
|
|
|
import kr.xit.ens.kt.service.IKtBcService;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@ -71,18 +73,18 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
if(mobilePageManage == null) throw BizRuntimeException.create("데이타 오류[카카오페이 내문서함 문서가 없습니다]");
|
|
|
|
if(mobilePageManage == null) throw BizRuntimeException.create("데이타 오류[카카오페이 내문서함 문서가 없습니다]");
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: 테스트를 위해 임시로 주석처리
|
|
|
|
// FIXME: 테스트를 위해 임시로 주석처리
|
|
|
|
// final ApiResponseDTO<KkopayDocDTO.ValidTokenResponse> res = kkopayService.findKkopayReadyAndMblPage(
|
|
|
|
final ApiResponseDTO<KkopayDocDTO.ValidTokenResponse> res = kkopayService.findKkopayReadyAndMblPage(
|
|
|
|
// KkopayDocDTO.OneTimeToken.builder()
|
|
|
|
KkopayDocDTO.OneTimeToken.builder()
|
|
|
|
// .document_binder_uuid(reqDTO.getDocumentBinderUuid())
|
|
|
|
.document_binder_uuid(reqDTO.getDocumentBinderUuid())
|
|
|
|
// .external_document_uuid(reqDTO.getExternalDocumentUuid())
|
|
|
|
.external_document_uuid(reqDTO.getExternalDocumentUuid())
|
|
|
|
// .token(reqDTO.getToken())
|
|
|
|
.token(reqDTO.getToken())
|
|
|
|
// .signguCode(mobilePageManage.getSignguCode())
|
|
|
|
.signguCode(mobilePageManage.getSignguCode())
|
|
|
|
// .ffnlgCode(mobilePageManage.getFfnlgCode())
|
|
|
|
.ffnlgCode(mobilePageManage.getFfnlgCode())
|
|
|
|
// .build()
|
|
|
|
.build()
|
|
|
|
// );
|
|
|
|
);
|
|
|
|
// if(!res.isSuccess()){
|
|
|
|
if(!res.isSuccess()){
|
|
|
|
// throw BizRuntimeException.create(res.getMessage());
|
|
|
|
throw BizRuntimeException.create(res.getMessage());
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -112,17 +114,17 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
if(mobilePageManage == null) throw BizRuntimeException.create("데이타 오류[카카오톡 내문서함 문서가 없습니다]");
|
|
|
|
if(mobilePageManage == null) throw BizRuntimeException.create("데이타 오류[카카오톡 내문서함 문서가 없습니다]");
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: 테스트를 위해 임시로 주석처리
|
|
|
|
// FIXME: 테스트를 위해 임시로 주석처리
|
|
|
|
// final ApiResponseDTO<KkotalkApiDTO.ValidTokenResponse> res = kkotalkService.findKkotalkReadyAndMblPage(
|
|
|
|
final ApiResponseDTO<KkotalkApiDTO.ValidTokenResponse> res = kkotalkService.findKkotalkReadyAndMblPage(
|
|
|
|
// KkotalkApiDTO.ValidTokenRequest.builder()
|
|
|
|
KkotalkApiDTO.ValidTokenRequest.builder()
|
|
|
|
// .envelopeId(reqDTO.getEnvelopeId())
|
|
|
|
.envelopeId(reqDTO.getEnvelopeId())
|
|
|
|
// .token(reqDTO.getToken())
|
|
|
|
.token(reqDTO.getToken())
|
|
|
|
// .signguCode(mobilePageManage.getSignguCode())
|
|
|
|
.signguCode(mobilePageManage.getSignguCode())
|
|
|
|
// .ffnlgCode(mobilePageManage.getFfnlgCode())
|
|
|
|
.ffnlgCode(mobilePageManage.getFfnlgCode())
|
|
|
|
// .build()
|
|
|
|
.build()
|
|
|
|
// );
|
|
|
|
);
|
|
|
|
// if(!res.isSuccess()){
|
|
|
|
if(!res.isSuccess()){
|
|
|
|
// throw BizRuntimeException.create(res.getMessage());
|
|
|
|
throw BizRuntimeException.create(res.getMessage());
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
}
|
|
|
|
}
|
|
|
|