|
|
|
@ -118,11 +118,12 @@ public class MessagingConnector {
|
|
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
|
|
headers.setContentType(MediaType.MULTIPART_FORM_DATA);
|
|
|
|
|
headers.add("sejongApiKey", apiKey);
|
|
|
|
|
|
|
|
|
|
System.out.println("headers : " + headers);
|
|
|
|
|
// Body MULTIPART_FORM_DATA로 변환
|
|
|
|
|
MultiValueMap<String, String> body = new LinkedMultiValueMap<>();
|
|
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
Map<String, String> map = null;
|
|
|
|
|
System.out.println("messageSendRequest : " + messageSendRequest);
|
|
|
|
|
|
|
|
|
|
// SMS
|
|
|
|
|
if (messageSendRequest.getSendType().equals("SMS")) {
|
|
|
|
@ -159,6 +160,7 @@ public class MessagingConnector {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
sejongMessageSendResponse = response.getBody();
|
|
|
|
|
System.out.println("response.getBody() : " + response.getBody());
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e) {
|
|
|
|
|
messageSendResponse.setCode("500");
|
|
|
|
@ -177,8 +179,6 @@ public class MessagingConnector {
|
|
|
|
|
if (!Objects.equals(sejongMessageSendResponse.getCode(), "200")) {
|
|
|
|
|
messageSendRequest.setSendType("");
|
|
|
|
|
messageSendResponse = this.messageDiv(messageSendRequest);
|
|
|
|
|
|
|
|
|
|
// messageSendServiceDsl.updateSendLog(seq);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|