fix
This commit is contained in:
2026-04-20 10:54:22 +08:00
parent 87b400e702
commit ef7efb2d3f

View File

@@ -469,7 +469,9 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
if (!order.getPaymentType().equals(PaymentType.OFFLINE.getCode())) { if (!order.getPaymentType().equals(PaymentType.OFFLINE.getCode())) {
userPointService.grantPointsByUserOrder(order); userPointService.grantPointsByUserOrder(order);
MarketInfoEntity marketInfo = marketInfoService.getById(AuthUtil.getUserId()); MarketInfoEntity marketInfo = marketInfoService.getById(AuthUtil.getUserId());
Assert.notNull(marketInfo, "无效用户"); if (marketInfo == null){
throw new ServiceException("无效用户");
}
if (marketInfo.getPid() != null) { if (marketInfo.getPid() != null) {
commissionService.earnedCommissionByUserOrder(order, marketInfo.getPid()); commissionService.earnedCommissionByUserOrder(order, marketInfo.getPid());
} }