Prechádzať zdrojové kódy

支付完成发送短信

周箭河 5 rokov pred
rodič
commit
b42002c64d

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

@@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.ModelAttribute;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
+import sun.plugin2.util.NativeLibLoader;
 
 import java.io.InputStreamReader;
 import java.math.BigDecimal;
@@ -209,11 +210,7 @@ public class YqPayController extends BaseController {
             return failed("请选择续费课程");
         }
 
-        School school = schoolService.get(pickCourses.get(0).getClassId());
-
-        if (school == null) {
-            return failed("报名学校不存在");
-        }
+        School school = null;
 
         String orderNo = GenerateNum.getInstance().GenerateOrderNo(); //自己系统订单号
         //获取分佣账户

+ 5 - 1
src/main/java/com/ym/mec/collectfee/service/impl/OrderServiceImpl.java

@@ -140,7 +140,11 @@ public class OrderServiceImpl extends BaseServiceImpl<Integer, Order> implements
     public Map getPayMap(Account routingAccount, Order order, School school) throws Exception {
 
         String notifyUrl = this.notifyUrl; //异步通知地址
-        String returnUrl = this.returnHost + "/#/login?schoolId=" + school.getSchoolId() + "&classId=" + order.getClassId() + "&cityId=" + school.getCityId();//支付后返回页面
+        String returnUrl = this.returnHost + "/#/payment?userId=1087191";//支付后返回页面
+
+        if (school != null) {
+            returnUrl = this.returnHost + "/#/login?schoolId=" + school.getSchoolId() + "&classId=" + order.getClassId() + "&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}";//支付方式配置