fix: 카카오톡 bulk send 오류 fix

main
Jonguk. Lim 3 months ago
parent bbe94bbdb9
commit 94e6c79464

@ -237,10 +237,11 @@ public class KkotalkEltrcDocService extends AbstractService implements
if(!errors.isEmpty()){ if(!errors.isEmpty()){
throw BizRuntimeException.create(errors.toString()); throw BizRuntimeException.create(errors.toString());
} }
String param = "{\"envelopes\":" + JsonUtils.toJson(envelopes) + "}";
return webClient.exchangeKkotalk( return webClient.exchangeKkotalk(
HOST + API_SEND[0].replace("{PRODUCT_CODE}", reqDTO.getProductCode()), HOST + API_SEND[0].replace("{PRODUCT_CODE}", reqDTO.getProductCode()),
HttpMethod.valueOf(API_BULKSEND[1]), HttpMethod.valueOf(API_BULKSEND[1]),
JsonUtils.toJson(envelopes), param,
KkotalkDTO.BulkSendResponse.class, KkotalkDTO.BulkSendResponse.class,
getRlaybsnmInfo(reqDTO)); getRlaybsnmInfo(reqDTO));
} }

Loading…
Cancel
Save