开通aiVip

This commit is contained in:
wuchunlei
2025-05-28 09:08:24 +08:00
parent e5fd9a64ff
commit 2b59423d55
7 changed files with 203 additions and 2 deletions

View File

@@ -78,6 +78,8 @@ public class AliPayServiceImpl implements AliPayService {
private CouponHistoryService couponHistoryService;
@Autowired
private TrainingClassService trainingClassService;
@Autowired
private AiVipLogService aiVipLogService;
@Override
public String pay(AlipayDTO payDto) {
@@ -199,6 +201,17 @@ public class AliPayServiceImpl implements AliPayService {
userVipService.openVipForUser(order);
}
if ("vip".equals(subject)) {
//更新 订单 记录
buyOrderService.updateOrderStatus(Integer.valueOf(customerid),oldPayZfbOrderEntity.getRelevanceoid(),"2");
//处理抵扣积分
if(order.getJfDeduction().compareTo(BigDecimal.ZERO)>0){
userCoinJf(order);
}
//开通aivip
aiVipLogService.openAiVip(order.getAiBuyConfigId());
}
if("point".equals(subject)){
// 插入花生币 变动记录
BookBuyConfigEntity bookBuyConfigEntity = bookBuyConfigService.getById(Integer.valueOf(body));