|
|
|
|
@ -74,7 +74,8 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
final MobilePageManage mobilePageManage = mapper.selectKkopayMobilePage(reqDTO);
|
|
|
|
|
if(mobilePageManage == null) throw BizRuntimeException.create("데이타 오류[카카오페이 내문서함 정보가 없습니다]");
|
|
|
|
|
|
|
|
|
|
// FIXME: 테스트를 위해 임시로 주석처리
|
|
|
|
|
// FIXME: 테스트시 아래 임시로 comment 처리
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
final ApiResponseDTO<KkopayDocDTO.ValidTokenResponse> res = kkopayService.findKkopayReadyAndMblPage(
|
|
|
|
|
KkopayDocDTO.OneTimeToken.builder()
|
|
|
|
|
.document_binder_uuid(reqDTO.getDocument_binder_uuid())
|
|
|
|
|
@ -87,6 +88,8 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
if(!res.isSuccess()){
|
|
|
|
|
throw BizRuntimeException.create(res.getCode(), res.getMessage());
|
|
|
|
|
}
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -115,7 +118,8 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
final MobilePageManage mobilePageManage = mapper.selectKkotalkMobilePage(reqDTO);
|
|
|
|
|
if(mobilePageManage == null) throw BizRuntimeException.create("데이타 오류[카카오톡 인증 문서 정보가 없습니다]");
|
|
|
|
|
|
|
|
|
|
// FIXME: 테스트를 위해 임시로 주석처리
|
|
|
|
|
// FIXME: 테스트시 아래 임시로 comment 처리
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
final ApiResponseDTO<KkotalkApiDTO.ValidTokenResponse> res = kkotalkService.findKkotalkReadyAndMblPage(
|
|
|
|
|
KkotalkApiDTO.ValidTokenRequest.builder()
|
|
|
|
|
.envelopeId(reqDTO.getEnvelopeId())
|
|
|
|
|
@ -127,11 +131,14 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
if(!res.isSuccess()){
|
|
|
|
|
throw BizRuntimeException.create(res.getCode(), res.getMessage());
|
|
|
|
|
}
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
|
* @Deprecated 미사용 - KtGBS 사용
|
|
|
|
|
* KT BC 모바일 페이지 요청 처리
|
|
|
|
|
* - 본문자 수신 등록 요청(BC-AG-SN-002) API 호출시
|
|
|
|
|
* -> url(callback)에 등록하여 호출 되게 됨
|
|
|
|
|
@ -145,12 +152,21 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
* @return
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
@Deprecated
|
|
|
|
|
@Override
|
|
|
|
|
@TraceLogging
|
|
|
|
|
public String findKtBcMblPage(final KtTokenDTO.KtTokenConfirmRequest reqDTO) {
|
|
|
|
|
if (Checks.isEmpty(reqDTO.getAccessToken()))
|
|
|
|
|
throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "KT BC 안심문자 정상 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
|
|
|
|
|
|
|
|
|
|
// FIXME: 테스트시 아래 임시로 comment 제거
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// final MobilePageManage mobilePageManage = mapper.selectKtGbsMobilePage(reqDTO.getServiceKey());
|
|
|
|
|
// return mobilePageManage.getMobilePageCn();
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
// FIXME: 테스트시 아래 임시로 comment 처리
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
final String signguCode = reqDTO.getSignguCode();
|
|
|
|
|
final String ffnlgCode = reqDTO.getFfnlgCode();
|
|
|
|
|
final KtTokenDTO.KtTokenConfirmResponse cfmRes = ktBcService.cfmToken(reqDTO);
|
|
|
|
|
@ -165,13 +181,13 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if(readRes.getResultCd().equals("00")){
|
|
|
|
|
String srcKey = cfmRes.getSrcKey();
|
|
|
|
|
final MobilePageManage mobilePageManage = mapper.selectKtBcMobilePage(srcKey);
|
|
|
|
|
final MobilePageManage mobilePageManage = mapper.selectKtBcMobilePage(cfmRes.getSrcKey());
|
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
|
}
|
|
|
|
|
throw BizRuntimeException.create(readRes.getResultCd(), readRes.toStringErrorMsg());
|
|
|
|
|
}
|
|
|
|
|
throw BizRuntimeException.create(cfmRes.getResultCd(), cfmRes.toStringErrorMsg());
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -195,10 +211,18 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
if (Checks.isEmpty(reqDTO.getToken()))
|
|
|
|
|
throw BizRuntimeException.create(String.valueOf(ErrorCode.BAD_REQUEST.getHttpStatus().value()), "KT GIBIS 안심문자 정상 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
|
|
|
|
|
|
|
|
|
|
// FIXME: 테스트시 아래 임시로 comment 제거
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// final MobilePageManage mobilePageManage = mapper.selectKtGbsMobilePage(reqDTO.getSrcKey());
|
|
|
|
|
// return mobilePageManage.getMobilePageCn();
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
// FIXME: 테스트시 아래 임시로 comment 처리
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
final String signguCode = reqDTO.getSignguCode();
|
|
|
|
|
final String ffnlgCode = reqDTO.getFfnlgCode();
|
|
|
|
|
final KtCommonDTO.KtCommonResponse cfmRes = ktGbsService.cfmToken(reqDTO);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(cfmRes.getResultCd().equals("00")){
|
|
|
|
|
KtCommonDTO.KtCommonResponse readRes = ktGbsService.readToken(
|
|
|
|
|
KtGbsDTO.TokenReadRequest.builder()
|
|
|
|
|
@ -210,13 +234,14 @@ public class MobilePageService extends AbstractService implements IMobilePageSer
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if(readRes.getResultCd().equals("00")){
|
|
|
|
|
String srcKey = reqDTO.getSrcKey();
|
|
|
|
|
final MobilePageManage mobilePageManage = mapper.selectKtGbsMobilePage(srcKey);
|
|
|
|
|
final MobilePageManage mobilePageManage = mapper.selectKtGbsMobilePage(reqDTO.getSrcKey());
|
|
|
|
|
return mobilePageManage.getMobilePageCn();
|
|
|
|
|
}
|
|
|
|
|
throw BizRuntimeException.create(readRes.getResultCd(), readRes.toStringErrorMsg());
|
|
|
|
|
}
|
|
|
|
|
throw BizRuntimeException.create(cfmRes.getResultCd(), cfmRes.toStringErrorMsg());
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|