diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/service/KkoTalkService.java b/src/main/java/cokr/xit/ens/modules/kkotalk/service/KkoTalkService.java index a0c633e..7e7bbac 100644 --- a/src/main/java/cokr/xit/ens/modules/kkotalk/service/KkoTalkService.java +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/service/KkoTalkService.java @@ -296,11 +296,11 @@ public class KkoTalkService { * @return */ @Transactional - public EnsResponseVO tokenVerify(String orgCd, String envelopId, String token, String externalId) { + public EnsResponseVO tokenVerify(String orgCd, String envelopeId, String token, String externalId) { EnsResponseVO responseVO = null; try { - if (CmmnUtil.isEmpty(envelopId)) + if (CmmnUtil.isEmpty(envelopeId)) throw new EnsException(EnsErrCd.ERR401, "문서식별번호(은)는 필수조건 입니다."); if (CmmnUtil.isEmpty(token)) throw new EnsException(EnsErrCd.ERR401, "토큰(은)는 필수조건 입니다."); @@ -310,7 +310,7 @@ public class KkoTalkService { ResponseEntity resp = kkoTalkApi.validToken( orgMng, KkotalkApiDTO.ValidTokenRequest.builder() - .envelopeId(envelopId) + .envelopeId(envelopeId) .token(token) .build() ); @@ -358,21 +358,19 @@ public class KkoTalkService { Map resultInfo = (Map) responseVO.getResultInfo(); // FIXME: 카카오톡 적용 확인 필요?? sendDetailKkoTalkTokenHistRepository.save(SendDetailKkoTalkTokenHist.builder() - .envelopeId(envelopId) - .envelopeId(externalId) + .envelopeId(envelopeId) + .externalId(externalId) .token(token) .tokenStatus((String) resultInfo.get("status")) - //.tokenUsedAt((String) resultInfo.get("used_at")) .sentAt((String) resultInfo.get("sentAt")) .receivedAt((String) resultInfo.get("receivedAt")) .authenticatedAt((String) resultInfo.get("authenticatedAt")) .userNotifiedAt((String) resultInfo.get("userNotifiedAt")) .payload((String) resultInfo.get("payload")) - //.signedAt((String) resultInfo.get("signed_at")) .build()); } else { sendDetailKkoTalkTokenHistRepository.save(SendDetailKkoTalkTokenHist.builder() - .envelopeId(envelopId) + .envelopeId(envelopeId) .externalId(externalId) .token(token) .error(FieldError.initBuilder()