|
|
@ -106,10 +106,11 @@ public class MobilePageController {
|
|
|
|
* </pre>
|
|
|
|
* </pre>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Operation(summary = "KT 모바일 데이타 요청(모바일 페이지에서 호출)", description = "KT 모바일 데이타 요청(모바일 페이지에서 호출)")
|
|
|
|
@Operation(summary = "KT 모바일 데이타 요청(모바일 페이지에서 호출)", description = "KT 모바일 데이타 요청(모바일 페이지에서 호출)")
|
|
|
|
@PostMapping(
|
|
|
|
@RequestMapping(
|
|
|
|
value = {"/kt/mblPage/old", "/kt/mblPage/canES", "/kt/mblPage/canWN"},
|
|
|
|
value = {"/kt/mblPage/old", "/kt/mblPage/canES", "/kt/mblPage/canWN"},
|
|
|
|
|
|
|
|
method = {RequestMethod.POST, RequestMethod.GET},
|
|
|
|
produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
public ModelAndView findKtMblPage(@RequestParam final String token, final HttpServletRequest request) {
|
|
|
|
public ModelAndView findKtMblPage(@RequestParam final String token, @RequestParam final String src_key, final HttpServletRequest request) {
|
|
|
|
final String uri = request.getRequestURI();
|
|
|
|
final String uri = request.getRequestURI();
|
|
|
|
String mblCnts = "";
|
|
|
|
String mblCnts = "";
|
|
|
|
|
|
|
|
|
|
|
@ -118,33 +119,44 @@ public class MobilePageController {
|
|
|
|
|
|
|
|
|
|
|
|
try{
|
|
|
|
try{
|
|
|
|
switch (uri) {
|
|
|
|
switch (uri) {
|
|
|
|
case "/kt/mblPage/canES":
|
|
|
|
case "/api/biz/mbl/kt/mblPage/canES":
|
|
|
|
mblCnts = service.findKtGbsMblPage(
|
|
|
|
mblCnts = service.findKtGbsMblPage(
|
|
|
|
KtGbsDTO.TokenConfirmRequest.builder()
|
|
|
|
KtGbsDTO.TokenConfirmRequest.builder()
|
|
|
|
.signguCode(SignguCode.CHEONAN_ES.getCode())
|
|
|
|
.signguCode(SignguCode.CHEONAN_ES.getCode())
|
|
|
|
.ffnlgCode(ApiConstants.FFNLN_CODE)
|
|
|
|
.ffnlgCode(ApiConstants.FFNLN_CODE)
|
|
|
|
.token(token)
|
|
|
|
.token(token)
|
|
|
|
|
|
|
|
.srcKey(src_key)
|
|
|
|
.build()
|
|
|
|
.build()
|
|
|
|
);
|
|
|
|
);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case "/kt/mblPage/canWN":
|
|
|
|
case "/api/biz/mbl//kt/mblPage/canWN":
|
|
|
|
mblCnts = service.findKtGbsMblPage(
|
|
|
|
mblCnts = service.findKtGbsMblPage(
|
|
|
|
KtGbsDTO.TokenConfirmRequest.builder()
|
|
|
|
KtGbsDTO.TokenConfirmRequest.builder()
|
|
|
|
.signguCode(SignguCode.CHEONAN_WN.getCode())
|
|
|
|
.signguCode(SignguCode.CHEONAN_WN.getCode())
|
|
|
|
.ffnlgCode(ApiConstants.FFNLN_CODE)
|
|
|
|
.ffnlgCode(ApiConstants.FFNLN_CODE)
|
|
|
|
.token(token)
|
|
|
|
.token(token)
|
|
|
|
|
|
|
|
.srcKey(src_key)
|
|
|
|
.build()
|
|
|
|
.build()
|
|
|
|
);
|
|
|
|
);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case "/kt/mblPage/old":
|
|
|
|
case "/api/biz/mbl/kt/mblPage/old":
|
|
|
|
//FIXME: KT old mblpage 적용 안됨
|
|
|
|
String signguCode = "";
|
|
|
|
mblCnts = service.findKtBcMblPage(
|
|
|
|
if(("CDO01").equals(request.getParameter("service_cd"))){
|
|
|
|
KtTokenDTO.KtTokenConfirmRequest.builder()
|
|
|
|
signguCode = SignguCode.CHEONAN_ES.getCode();
|
|
|
|
.signguCode("")
|
|
|
|
} else if(("CSO01").equals(request.getParameter("service_cd"))){
|
|
|
|
|
|
|
|
signguCode = SignguCode.CHEONAN_WN.getCode();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
throw BizRuntimeException.create(String.format("정상적인 요청이 아닙니다. 요청 url을 확인해 주세요.\n(요청 URL: %s)", uri));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mblCnts = service.findKtGbsMblPage(
|
|
|
|
|
|
|
|
KtGbsDTO.TokenConfirmRequest.builder()
|
|
|
|
|
|
|
|
.signguCode(signguCode)
|
|
|
|
.ffnlgCode(ApiConstants.FFNLN_CODE)
|
|
|
|
.ffnlgCode(ApiConstants.FFNLN_CODE)
|
|
|
|
.accessToken(token)
|
|
|
|
.token(token)
|
|
|
|
|
|
|
|
.srcKey(src_key)
|
|
|
|
.build()
|
|
|
|
.build()
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|