|
@@ -220,6 +220,9 @@ public class YqPayController extends BaseController {
|
|
|
|
|
|
//classType 小课1 大课2
|
|
|
Integer buyCount = mecCourse4json.getBuyCount();
|
|
|
+ if (buyCount <= 0) {
|
|
|
+ return failed("购买次数不能小于1");
|
|
|
+ }
|
|
|
BigDecimal amount = new BigDecimal("0"); //课程总价
|
|
|
String remark = "";
|
|
|
List<MecCourse> pickCourses = new ArrayList<>();
|
|
@@ -240,7 +243,7 @@ public class YqPayController extends BaseController {
|
|
|
}
|
|
|
|
|
|
School school = schoolService.get(pickCourses.get(0).getClassId());
|
|
|
- if (school ==null){
|
|
|
+ if (school == null) {
|
|
|
return failed("报名学校不存在");
|
|
|
}
|
|
|
String notifyUrl = "http://47.99.212.176:9000/yqpay/notify"; //异步通知地址
|
|
@@ -273,7 +276,7 @@ public class YqPayController extends BaseController {
|
|
|
List<Map> tempRoutingList = new ArrayList();
|
|
|
tempRoutingList.add(routingList);
|
|
|
|
|
|
- renewalsService.addRenewalsOrder(renewals, amount, orderNo, pickCourses, routingMerNo,account.getId(), remark);
|
|
|
+ renewalsService.addRenewalsOrder(renewals, amount, orderNo, pickCourses, routingMerNo, account.getId(), remark);
|
|
|
|
|
|
/*订单信息*/
|
|
|
String orderBody = "大雅乐盟培训课程";
|
|
@@ -421,7 +424,7 @@ public class YqPayController extends BaseController {
|
|
|
*/
|
|
|
@PostMapping("/notify")
|
|
|
public Msg notify(@ModelAttribute Msg msg) throws Exception {
|
|
|
-// log.info(msg.toString());
|
|
|
+// log.info(msg.toString());K
|
|
|
Map<String, Object> rqMap = new LinkedHashMap<String, Object>();
|
|
|
rqMap.put("code", msg.getCode());
|
|
|
rqMap.put("msg", msg.getMsg());
|
|
@@ -461,7 +464,7 @@ public class YqPayController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @Scheduled(cron = "0/5 * * * * ?")
|
|
|
+ //@Scheduled(cron = "0/5 * * * * ?")
|
|
|
//@RequestMapping("/getOrderStatus")
|
|
|
public void getOrderStatus() throws Exception {
|
|
|
System.err.println("执行静态定时任务时间: " + LocalDateTime.now());
|