20250113_3

main
seokjun jeon 2 weeks ago
parent cc74107fce
commit e58fc1cc26

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

Loading…
Cancel
Save