Browse Source

修改支付返回地址

周箭河 6 years ago
parent
commit
1f0853993c

+ 6 - 2
src/main/java/com/ym/mec/collectfee/controller/YqPayController.java

@@ -51,6 +51,8 @@ public class YqPayController extends BaseController {
 
     @Autowired
     private RenewalsService renewalsService;
+    @Autowired
+    private SchoolService schoolService;
 
 
     /**
@@ -118,8 +120,9 @@ public class YqPayController extends BaseController {
         order.setSdFee(adjunctPrice);
 
 
+        School school = schoolService.get(order.getClassId());
         String notifyUrl = "http://47.99.212.176:9000/yqpay/notify"; //异步通知地址
-        String returnUrl = "http://dev.dayaedu.com";//支付后返回页面
+        String returnUrl = "http://pay.dayaedu.com/login?schoolId=" + school.getId() + "&classId=" + school.getClass() + "&cityId=" + school.getCityId();//支付后返回页面
         String payUrl = "https://qyfapi.95epay.com/api/api/hPay/toPayHtml";//支付跳转页
         String payChannels = "{\"weChatPay\":true,\"weChatPayMobile\":false,\"aliPay\":true,\"fastpayXy\":true,\"aliPayMobile\":false,\"balancePay\":false}";//支付方式配置
 
@@ -235,8 +238,9 @@ public class YqPayController extends BaseController {
             return failed("请选择续费课程");
         }
 
+        School school = schoolService.get(pickCourses.get(0).getClassId());
         String notifyUrl = "http://47.99.212.176:9000/yqpay/notify"; //异步通知地址
-        String returnUrl = "http://dev.dayaedu.com";//支付后返回页面
+        String returnUrl = "http://pay.dayaedu.com/login?schoolId=" + school.getId() + "&classId=" + school.getClass() + "&cityId=" + school.getCityId();//支付后返回页面
         String payUrl = "https://qyfapi.95epay.com/api/api/hPay/toPayHtml";//支付跳转页
         String payChannels = "{\"weChatPay\":true,\"weChatPayMobile\":false,\"aliPay\":true,\"fastpayXy\":true,\"aliPayMobile\":false,\"balancePay\":false}";//支付方式配置