|
|
@@ -427,12 +427,7 @@ public class OrderPayService {
|
|
|
if (order.getStatus() != AuctionOrderStatus.NOT_PAID) {
|
|
|
throw new BusinessException("订单状态错误");
|
|
|
}
|
|
|
- if (!Objects.equals(order.getUserId(), userId)) {
|
|
|
- throw new BusinessException("订单不属于该用户");
|
|
|
- }
|
|
|
- if (!Objects.equals(userRepo.findTradeCode(userId), tradeCode)) {
|
|
|
- throw new BusinessException("交易码错误");
|
|
|
- }
|
|
|
+ checkTradeCode(userId, tradeCode, order.getUserId());
|
|
|
BalanceRecord record = userBalanceService.balancePay(order.getUserId(), order.getTotalPrice(), orderId, "拍卖");
|
|
|
auctionOrderService.notify(orderId, PayMethod.BALANCE, record.getId().toString());
|
|
|
}
|