日志内容意义不明确优化,补充备注。去除一行无效的代码。

This commit is contained in:
Chopper 2022-06-20 12:01:32 +08:00
parent 8894e5482f
commit ea1b91af2a
2 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,6 @@ public class PaymentExecute implements OrderStatusChangeEvent {
.orderSn(order.getSn())
.paymentReceivableNo(order.getReceivableNo())
.outOrderNo("AF" + SnowFlake.getIdStr())
.outOrderNo("AF" + SnowFlake.getIdStr())
.refundReason("订单取消")
.build();
payment.refund(refundLog);

View File

@ -28,9 +28,12 @@ public class PaymentServiceImpl implements PaymentService {
@Override
public void success(PaymentSuccessParams paymentSuccessParams) {
//支付状态
boolean paymentResult = cashierSupport.paymentResult(paymentSuccessParams.getPayParam());
//已支付则返回
if (paymentResult) {
log.warn("订单支付状态后,调用支付成功接口,流水号:{}", paymentSuccessParams.getReceivableNo());
log.warn("收银台重复收款,流水号:{}", paymentSuccessParams.getReceivableNo());
return;
}