This commit is contained in:
wuchunlei
2025-06-04 17:12:00 +08:00
parent 6852c64984
commit 5cc6f4f255
12 changed files with 212 additions and 57 deletions

View File

@@ -30,6 +30,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;
import java.util.*;
@@ -209,7 +211,7 @@ public class AliPayServiceImpl implements AliPayService {
userCoinJf(order);
}
//开通aivip
aiVipLogService.openAiVip(order.getAiBuyConfigId());
aiVipLogService.openAiVip(order);
}
if("point".equals(subject)){
@@ -338,8 +340,8 @@ public class AliPayServiceImpl implements AliPayService {
}
log.error(">>>>>>>>>>验签失败 params = {}", params.toString());
return "fail";
} catch (Exception e) {
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
log.error(">>>>>>>>>>订单回调异常: 订单号 = {}, msg = {}", params.toString(), e.getMessage());
return "fail";
}

View File

@@ -198,7 +198,7 @@ public class WxpayServiceImpl extends ServiceImpl<PayWechatOrderDao, PayWechatOr
userCoinJf(order);
}
//开通aivip
aiVipLogService.openAiVip(order.getAiBuyConfigId());
aiVipLogService.openAiVip(order);
}
// 1.根据订单id获取订单信息