Explorar o código

2023双十一活动

zouxuan hai 1 ano
pai
achega
24e58e3fe8

+ 4 - 5
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentPaymentOrderServiceImpl.java

@@ -1476,23 +1476,22 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
             notifyMap.put("orderNo", model.getOrderNo());
             return notifyMap;
         }
-
-        String baseApiUrl = sysConfigDao.findConfigValue("base_api_url");
-        String notifyUrl = "";
+        /*String notifyUrl = "";
         if ("YEEPAY".equals(studentPaymentOrder.getPaymentChannel())){
             notifyUrl = baseApiUrl + "/api-mall-portal/payment/callback_yee/" + studentPaymentOrder.getTenantId();
         }else if ("ADAPAY".equals(studentPaymentOrder.getPaymentChannel())){
             notifyUrl = baseApiUrl + "/api-mall-portal/payment/callback";
         }else {
             throw new BizException("支付渠道错误");
-        }
+        }*/
 
+        String baseApiUrl = sysConfigDao.findConfigValue("base_api_url");
         //  receiver类型
         payMap = payService.getPayMap(
                 studentPaymentOrder.getActualAmount(),
                 studentPaymentOrder.getBalancePaymentAmount(),
                 model.getOrderNo(),
-                notifyUrl,
+                baseApiUrl + "/api-mall-portal/payment/callback",
                 baseApiUrl + "/api-student/studentOrder/paymentResult?type=edu&orderNo=" + model.getOrderNo(),
                 "商品销售",
                 "商品销售",