From f8e00085ba8e993249790717b1ef0e12feed0539 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Thu, 29 Aug 2024 16:45:09 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20KT=20GIBIS=20=ED=86=A0=ED=81=B0=20?= =?UTF-8?q?=EA=B0=B1=EC=8B=A0=20=EB=B0=B0=EC=B9=98=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=83=9D=EC=84=B1=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ens/service/EnsBatchKtGbsAccessTokenUpdateService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchKtGbsAccessTokenUpdateService.java b/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchKtGbsAccessTokenUpdateService.java index 56777fc..ea4eac9 100644 --- a/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchKtGbsAccessTokenUpdateService.java +++ b/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchKtGbsAccessTokenUpdateService.java @@ -8,6 +8,7 @@ import org.springframework.transaction.annotation.Transactional; import kr.xit.biz.ens.cmm.CmmEnsBizUtils; import kr.xit.biz.ens.model.kt.KtCommonDTO; +import kr.xit.core.exception.BizRuntimeException; import kr.xit.core.model.ApiResponseDTO; import kr.xit.core.service.AbstractService; import kr.xit.core.spring.util.ApiWebClientUtil; @@ -46,11 +47,15 @@ public class EnsBatchKtGbsAccessTokenUpdateService extends AbstractService imple public void modifyAccessToken(final KtCommonDTO.KtMnsRequest dto) { final String url = apiHost + requestToken; - apiWebClient.exchange( + ApiResponseDTO result = apiWebClient.exchange( url, HttpMethod.POST, dto, ApiResponseDTO.class, CmmEnsBizUtils.getHeadeMap()); + + if(!result.isSuccess()){ + throw BizRuntimeException.create(result.getCode(), result.getMessage()); + } } }