Skip to content

Commit

Permalink
日志内容意义不明确优化,补充备注。去除一行无效的代码。
Browse files Browse the repository at this point in the history
  • Loading branch information
chopper711 committed Jun 20, 2022
1 parent 8894e54 commit ea1b91a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public void orderChange(OrderMessage orderMessage) {
.orderSn(order.getSn())
.paymentReceivableNo(order.getReceivableNo())
.outOrderNo("AF" + SnowFlake.getIdStr())
.outOrderNo("AF" + SnowFlake.getIdStr())
.refundReason("订单取消")
.build();
payment.refund(refundLog);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ea1b91a

Please sign in to comment.