반려 팝업 api요청 실패 확인

This commit is contained in:
kubo8
2023-02-10 11:46:42 +09:00
parent ee5905c760
commit 1c03520be1
2 changed files with 9 additions and 9 deletions

View File

@@ -114,16 +114,17 @@ public class ChannelMgtService {
List<Map<Object,Object>> rjtDataListMap = null; List<Map<Object,Object>> rjtDataListMap = null;
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
JSONArray array = new JSONArray();
String callUrl = apiDomain + apiUrlAlTolkTemplet; String callUrl = apiDomain + apiUrlAlTolkTemplet;
jsonObject.put("senderKey", tmpltListReqDto.getSndrprofKey());
jsonObject.put("templateKey", tmpltListReqDto.getTmpltKey());
try {
apiResultMap = (Map<Object, Object>) clientRequestService.callBySyncPost(callUrl, jsonObject); try {
logger.info("apiResultMap : {}", apiResultMap); jsonObject.put("senderKey", tmpltListReqDto.getSndrprofKey());
if("0000".equals(apiResultMap.get("retCode"))) { jsonObject.put("templateKey", tmpltListReqDto.getTmpltKey());
array.add(jsonObject);
logger.info("array : {}", array);
apiResultMap = (Map<Object, Object>) clientRequestService.callBySyncPost(callUrl, array);
logger.info("apiResultMap : {}", apiResultMap);
if("0000".equals(apiResultMap.get("retCode"))) {
Map<Object, Object> dataMap = (Map<Object, Object>) apiResultMap.get("data"); Map<Object, Object> dataMap = (Map<Object, Object>) apiResultMap.get("data");
Map<Object, Object> dataTempMap = (Map<Object, Object>) dataMap.get("list"); Map<Object, Object> dataTempMap = (Map<Object, Object>) dataMap.get("list");

View File

@@ -30,7 +30,6 @@ public class WebClientRequestService {
public Object callBySyncPost(String uri, Object param) { public Object callBySyncPost(String uri, Object param) {
Date startTime = new Date(); Date startTime = new Date();
Object result = webClient.post().uri(uri).bodyValue(param).retrieve().bodyToMono(Object.class).block(); Object result = webClient.post().uri(uri).bodyValue(param).retrieve().bodyToMono(Object.class).block();
log.info("callBySyncPost duration Time : {}", (new Date().getTime() - startTime.getTime()) / 1000f);
log.debug("callBySyncPost duration Time : {}", (new Date().getTime() - startTime.getTime()) / 1000f); log.debug("callBySyncPost duration Time : {}", (new Date().getTime() - startTime.getTime()) / 1000f);
return result; return result;
} }