From a6053f3f9bc5146861157fe899c64d4e8c667edd Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Thu, 19 Jun 2025 02:18:19 +0800 Subject: [PATCH] fix refundTime --- app/main/api/etc/main.dev.yaml | 2 +- .../api/internal/logic/admin_order/adminrefundorderlogic.go | 1 - app/main/api/internal/queue/paySuccessNotify.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/main/api/etc/main.dev.yaml b/app/main/api/etc/main.dev.yaml index 35c450c..3529eba 100644 --- a/app/main/api/etc/main.dev.yaml +++ b/app/main/api/etc/main.dev.yaml @@ -49,7 +49,7 @@ Wxpay: MchPublicKeyPath: "etc/merchant/pub_key.pem" MchPlatformRAS: "1FFEC3F62E31885FAB4C91ADCB8D7557E9488781" NotifyUrl: "https://6m4685017o.goho.co/api/v1/pay/wechat/callback" - RefundNotifyUrl: "https://6m4685017o.goho.co/api/v1/wechat/refund_callback" + RefundNotifyUrl: "https://6m4685017o.goho.co/api/v1/pay/wechat/refund_callback" Applepay: ProductionVerifyURL: "https://api.storekit.itunes.apple.com/inApps/v1/transactions/receipt" SandboxVerifyURL: "https://api.storekit-sandbox.itunes.apple.com/inApps/v1/transactions/receipt" diff --git a/app/main/api/internal/logic/admin_order/adminrefundorderlogic.go b/app/main/api/internal/logic/admin_order/adminrefundorderlogic.go index baf71c7..1d9034d 100644 --- a/app/main/api/internal/logic/admin_order/adminrefundorderlogic.go +++ b/app/main/api/internal/logic/admin_order/adminrefundorderlogic.go @@ -151,7 +151,6 @@ func (l *AdminRefundOrderLogic) createRefundRecordAndUpdateOrder(order *model.Or // 更新订单状态 order.Status = orderStatus - order.RefundTime = sql.NullTime{Time: time.Now(), Valid: true} if _, err := l.svcCtx.OrderModel.Update(ctx, session, order); err != nil { return fmt.Errorf("更新订单状态失败: %v", err) } diff --git a/app/main/api/internal/queue/paySuccessNotify.go b/app/main/api/internal/queue/paySuccessNotify.go index 80abc4d..fd222fb 100644 --- a/app/main/api/internal/queue/paySuccessNotify.go +++ b/app/main/api/internal/queue/paySuccessNotify.go @@ -172,7 +172,6 @@ func (l *PaySuccessNotifyUserHandler) processRefund(ctx context.Context, order * // 更新订单状态为退款中 order.Status = model.OrderStatusRefunding - order.RefundTime = sql.NullTime{Time: time.Now(), Valid: true} if _, err := l.svcCtx.OrderModel.Update(ctx, session, order); err != nil { return fmt.Errorf("更新订单状态失败: %v", err) }