...
|
...
|
@@ -272,7 +272,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
}
|
|
|
|
|
|
// 更新订单状态[已支付]
|
|
|
abstractOrderService.updateOrderStatusPaid(orderInfo);
|
|
|
int num = abstractOrderService.updateOrderStatusPaid(orderInfo);
|
|
|
|
|
|
// 记录支付成功记录
|
|
|
OrdersPay ordersPay = new OrdersPay();
|
...
|
...
|
@@ -313,8 +313,10 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
addPayEnsureRecord(orderInfo.getUid(), orderInfo.getSkup(), orderCode, recordPayment,
|
|
|
ordersPay.getAmount());
|
|
|
} else if (codeMeta.getType() == OrderCodeType.SELLER_RECHARGE_EARNEST_TYPE.getType()) {
|
|
|
addPayEnsureRecord(orderInfo.getUid(), orderInfo.getSkup(), orderCode, recordPayment,
|
|
|
ordersPay.getAmount());
|
|
|
if (num > 0) { // 防止并发回调和 主动查询结果。做幂等
|
|
|
addPayEnsureRecord(orderInfo.getUid(), orderInfo.getSkup(), orderCode, recordPayment,
|
|
|
ordersPay.getAmount());
|
|
|
}
|
|
|
}
|
|
|
logger.info("paySuccess finished. orderCode is {}", orderCode);
|
|
|
abstractOrderService.processAfterPay(orderInfo);
|
...
|
...
|
|