update:
fix
This commit is contained in:
@@ -469,7 +469,9 @@ public class CommonUserOrderServiceImpl extends ServiceImpl<CommonUserOrderMappe
|
||||
if (!order.getPaymentType().equals(PaymentType.OFFLINE.getCode())) {
|
||||
userPointService.grantPointsByUserOrder(order);
|
||||
MarketInfoEntity marketInfo = marketInfoService.getById(AuthUtil.getUserId());
|
||||
Assert.notNull(marketInfo, "无效用户");
|
||||
if (marketInfo == null){
|
||||
throw new ServiceException("无效用户");
|
||||
}
|
||||
if (marketInfo.getPid() != null) {
|
||||
commissionService.earnedCommissionByUserOrder(order, marketInfo.getPid());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user