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,14 +114,15 @@ public class ChannelMgtService {
|
||||
List<Map<Object,Object>> rjtDataListMap = null;
|
||||
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
|
||||
JSONArray array = new JSONArray();
|
||||
String callUrl = apiDomain + apiUrlAlTolkTemplet;
|
||||
jsonObject.put("senderKey", tmpltListReqDto.getSndrprofKey());
|
||||
jsonObject.put("templateKey", tmpltListReqDto.getTmpltKey());
|
||||
|
||||
try {
|
||||
|
||||
apiResultMap = (Map<Object, Object>) clientRequestService.callBySyncPost(callUrl, jsonObject);
|
||||
jsonObject.put("senderKey", tmpltListReqDto.getSndrprofKey());
|
||||
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");
|
||||
|
||||
@@ -30,7 +30,6 @@ public class WebClientRequestService {
|
||||
public Object callBySyncPost(String uri, Object param) {
|
||||
Date startTime = new Date();
|
||||
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);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user