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();