From ba437e925483fbf9d1bf5c61abb5742b972af606 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 11 Sep 2024 10:36:22 +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-=20send,=20status=20?= =?UTF-8?q?=20=20=20=20=20=20-=20=EB=8B=A4=EA=B1=B4=EB=B0=9C=EC=83=9D?= =?UTF-8?q?=EA=B2=B0=EA=B3=BC=20=EB=AA=A9=EB=A1=9D=20key=20fix=20:=20envel?= =?UTF-8?q?opeIds=20>=20envelopes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/kkotalk/service/support/KkoTalkSender.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkSender.java b/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkSender.java index d981d83..cda0709 100644 --- a/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkSender.java +++ b/src/main/java/cokr/xit/ens/modules/kkotalk/service/support/KkoTalkSender.java @@ -94,7 +94,7 @@ public class KkoTalkSender extends SendProcTemplate { List> envelopeIds = (List>)((Map)mResponse.getResultInfo()).get( - "envelopeIds"); + "envelopes"); Map mApiResp = envelopeIds.stream() .map(this::toApiRespVOMap) @@ -316,8 +316,8 @@ public class KkoTalkSender extends SendProcTemplate { if (EnsErrCd.OK.equals(respVO.getErrCode())) { Map mRespBody = (Map)respVO.getResultInfo(); - List> documents = (List>)mRespBody.get("envelopeIds"); - Map> mRespMsg = documents.stream() + List> envelopeIds = (List>)mRespBody.get("envelopes"); + Map> mRespMsg = envelopeIds.stream() .map(row -> { Map m = new HashMap<>(); m.put("key", String.valueOf(row.get("externalId"))); @@ -403,8 +403,8 @@ public class KkoTalkSender extends SendProcTemplate { Map mResp = null; try { mResp = gson.fromJson(respMsg, Map.class); - if (CmmnUtil.isEmpty(mResp.get("envelopeIds"))) - throw new EnsException(EnsErrCd.SEND620, String.format("전송요청API 오류. envelopeIds 키값이 없습니다. %s", respMsg)); + if (CmmnUtil.isEmpty(mResp.get("envelopes"))) + throw new EnsException(EnsErrCd.SEND620, String.format("전송요청API 오류. envelopes 키값이 없습니다. %s", respMsg)); } catch (EnsException e) { errCode = e.getErrCd(); errMsg = e.getMessage();