diff --git a/mens-api/src/main/java/kr/xit/biz/mbl/web/MobilePageController.java b/mens-api/src/main/java/kr/xit/biz/mbl/web/MobilePageController.java index 50cf950..d6378b1 100644 --- a/mens-api/src/main/java/kr/xit/biz/mbl/web/MobilePageController.java +++ b/mens-api/src/main/java/kr/xit/biz/mbl/web/MobilePageController.java @@ -3,9 +3,14 @@ package kr.xit.biz.mbl.web; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; -import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.ModelAttribute; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; @@ -15,6 +20,7 @@ import kr.xit.biz.ens.model.cntc.CntcDTO; import kr.xit.biz.ens.model.kt.KtTokenDTO; import kr.xit.biz.mbl.model.MobilePageDTO; import kr.xit.biz.mbl.service.IMobilePageService; +import kr.xit.core.exception.BizRuntimeException; import kr.xit.core.model.IApiResponse; import lombok.RequiredArgsConstructor; @@ -54,6 +60,11 @@ public class MobilePageController { value = {"/kko/mblPage"}, method = {RequestMethod.POST, RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) public IApiResponse findKkoMyDocReadyAndMblData(@ModelAttribute final MobilePageDTO.KakaoValidTokenRequest reqDTO) { + if((StringUtils.isEmpty(reqDTO.getDocumentBinderUuid()) && StringUtils.isEmpty(reqDTO.getEnvelopeId())) + || StringUtils.isEmpty(reqDTO.getToken())) { + throw BizRuntimeException.create("정상적인 요청이 아닙니다. 재인증 후 시도하시기 바랍니다."); + } + if(StringUtils.isNotEmpty(reqDTO.getDocumentBinderUuid())) { return service.findKkopayReadyAndMblPage(reqDTO); }else{