xodud lee 5 роки тому
батько
коміт
edb1fa6c53

+ 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"));