mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 04:27:21 +09:00
반려 팝업 api요청 실패 확인
This commit is contained in:
@@ -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");
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user