f
This commit is contained in:
@@ -266,8 +266,12 @@ func (l *PaySuccessNotifyUserHandler) handleError(ctx context.Context, err error
|
||||
logx.Infof("已发起微信退款申请, orderID: %d, amount: %f", order.Id, order.Amount)
|
||||
return asynq.SkipRetry
|
||||
} else {
|
||||
// 支付宝退款为同步结果,这里直接根据返回结果更新订单和佣金/钱包
|
||||
refund, refundErr := l.svcCtx.AlipayService.AliRefund(ctx, order.OrderNo, order.Amount)
|
||||
// 支付宝退款为同步结果,2026-02-02 18:26 前的订单走 bak 商户号
|
||||
orderPayTime := &order.CreateTime
|
||||
if order.PayTime.Valid {
|
||||
orderPayTime = &order.PayTime.Time
|
||||
}
|
||||
refund, refundErr := l.svcCtx.AlipayService.AliRefund(ctx, order.OrderNo, order.Amount, orderPayTime)
|
||||
if refundErr != nil {
|
||||
logx.Error(refundErr)
|
||||
return asynq.SkipRetry
|
||||
|
||||
Reference in New Issue
Block a user