main
seokjun jeon 2 weeks ago
parent 194ce52a6b
commit 04a86dd920

@ -3,8 +3,6 @@ package com.icomsys;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.icomsys.dsl.MessageSendServiceDsl; import com.icomsys.dsl.MessageSendServiceDsl;
import com.icomsys.dsl.MessageSendServiceDslImpl;
import com.icomsys.message.MessageSendLogMapper;
import com.icomsys.util.CommonBeanUtils; import com.icomsys.util.CommonBeanUtils;
import com.icomsys.vo.*; import com.icomsys.vo.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -27,7 +25,7 @@ public class MessagingConnector {
private final String mms; private final String mms;
private final String kakao; private final String kakao;
private final String apiKey; private final String apiKey;
public final MessageSendServiceDsl messageSendServiceDsl; private final MessageSendServiceDsl messageSendServiceDsl;
private final HttpClient httpClient; private final HttpClient httpClient;
public MessagingConnector(String sms, String lms, String mms, String kakao, String apiKey, MessageSendServiceDsl messageSendServiceDsl) { public MessagingConnector(String sms, String lms, String mms, String kakao, String apiKey, MessageSendServiceDsl messageSendServiceDsl) {
@ -128,14 +126,17 @@ public class MessagingConnector {
} }
messageSendResponse = this.responseChange(sejongMessageSendResponse, messageSendRequest); messageSendResponse = this.responseChange(sejongMessageSendResponse, messageSendRequest);
System.out.println("sejongMessageSendResponse : " + sejongMessageSendResponse);
System.out.println("messageSendRequest : " + messageSendRequest);
System.out.println("messageSendResponse : " + messageSendResponse);
this.messageSendServiceDsl.insertSendLog(sejongMessageSendResponse, messageSendRequest, messageSendResponse); this.messageSendServiceDsl.insertSendLog(sejongMessageSendResponse, messageSendRequest, messageSendResponse);
System.out.println("11111111111111111111");
if ("KAKAO".equals(messageSendRequest.getSendType()) && "Y".equals(messageSendRequest.getOptionYn()) && if ("KAKAO".equals(messageSendRequest.getSendType()) && "Y".equals(messageSendRequest.getOptionYn()) &&
!Objects.equals(sejongMessageSendResponse.getCode(), "200")) { !Objects.equals(sejongMessageSendResponse.getCode(), "200")) {
messageSendRequest.setSendType(""); messageSendRequest.setSendType("");
messageSendResponse = this.messageDiv(messageSendRequest); messageSendResponse = this.messageDiv(messageSendRequest);
} }
System.out.println("22222222222222222222");
return messageSendResponse; return messageSendResponse;
} }

Loading…
Cancel
Save