Browse Source

이태영 - 20210607 MOB 일 경우 > PC가 아닐경우로 변경 (FRONT_GB APP 추가로 인함)

xodud lee 5 năm trước cách đây
mục cha
commit
c485aebe20

+ 1 - 1
src/main/java/com/style24/front/biz/service/TsfOrderService.java

@@ -344,7 +344,7 @@ public class TsfOrderService {
 	public Payment orderPgPayResult(Payment param, HttpServletRequest request, HttpServletResponse response) {
 		Payment result = new Payment();
 
-		if(TscConstants.FrontGb.MOB.value().equals(TsfSession.getFrontGb()) && StringUtils.isEmpty(param.getPgGb())) {
+		if(!TscConstants.FrontGb.PC.value().equals(TsfSession.getFrontGb()) && StringUtils.isEmpty(param.getPgGb())) {
 			param.setPgGb(TscConstants.PgGb.KCP.value());
 			param.setPayMeans(TscConstants.PayMeans.CREDIT_CARD.value());
 		}

+ 1 - 1
src/main/java/com/style24/front/biz/web/TsfOrderController.java

@@ -1336,7 +1336,7 @@ public class TsfOrderController extends TsfBaseController {
 		mav.addObject("paymentId", paymentId);
 		mav.addObject("ordNo", TsfSession.getAttribute("ordNo"));
 
-		if (TscConstants.FrontGb.MOB.value().equals(TsfSession.getFrontGb()) && StringUtils.isNotBlank(resultCode) && "Fail".equals(resultCode)) {
+		if (!TscConstants.FrontGb.PC.value().equals(TsfSession.getFrontGb()) && StringUtils.isNotBlank(resultCode) && "Fail".equals(resultCode)) {
 			mav.setViewName(super.getDeviceViewName("error/PaymentFail"));
 		} else {
 			mav.setViewName(super.getDeviceViewName("pg/NaverPaymentRequest"));