|  | @@ -98,6 +98,8 @@ public class UserOrderServiceImpl extends ServiceImpl<UserOrderDao, UserOrder> i
 | 
	
		
			
				|  |  |          orderCancel.put(GoodTypeEnum.PRACTICE, scheduleService::buyPracticeCourseFailed);
 | 
	
		
			
				|  |  |          //视频课购买
 | 
	
		
			
				|  |  |          orderCancel.put(GoodTypeEnum.VIDEO, recordService::buyVideoCourseFailed);
 | 
	
		
			
				|  |  | +        //直播课购买
 | 
	
		
			
				|  |  | +        orderCancel.put(GoodTypeEnum.LIVE, courseGroupService::buyLiveCourseCancel);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
	
		
			
				|  | @@ -287,7 +289,7 @@ public class UserOrderServiceImpl extends ServiceImpl<UserOrderDao, UserOrder> i
 | 
	
		
			
				|  |  |              //支付成功
 | 
	
		
			
				|  |  |              if (PayStatusEnum.succeeded.getCode().equals(resMap.get("status").toString())) {
 | 
	
		
			
				|  |  |                  orderSuccess(userOrder);
 | 
	
		
			
				|  |  | -            }else{
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  |                  orderCancel(userOrder);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          } catch (Exception e) {
 | 
	
	
		
			
				|  | @@ -387,7 +389,7 @@ public class UserOrderServiceImpl extends ServiceImpl<UserOrderDao, UserOrder> i
 | 
	
		
			
				|  |  |      private UserOrderPayment errOrderPayment(HttpResponseResult<Map<String, Object>> responseResult, OrderPayReq payReq) {
 | 
	
		
			
				|  |  |          //查询
 | 
	
		
			
				|  |  |          UserOrderPayment orderPayment = orderPaymentService.detailByOrderNo(payReq.getOrderNo());
 | 
	
		
			
				|  |  | -        if(null == orderPayment){
 | 
	
		
			
				|  |  | +        if (null == orderPayment) {
 | 
	
		
			
				|  |  |              orderPayment = new UserOrderPayment();
 | 
	
		
			
				|  |  |              orderPayment.setOrderNo(payReq.getOrderNo());
 | 
	
		
			
				|  |  |              orderPayment.setPayChannel(payReq.getPayChannel());
 |