From e844de8decb014775835170427a84502ca9200b1 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 11 Sep 2024 17:36:12 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=ED=86=A1=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=98=EC=98=81=20-=20=EB=AA=A8?= =?UTF-8?q?=EB=B0=94=EC=9D=BC=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/kkotalk/service/KkoTalkService.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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()