From d11ff47f0c3a49d5fd871873171ea6a797b84eed Mon Sep 17 00:00:00 2001 From: ziming Date: Thu, 5 Jun 2025 13:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=9C=9F=E4=B8=8D=E5=81=9A=E9=80=9A?= =?UTF-8?q?=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/wechat_notify.go | 3 ++- internal/biz/wechat_query.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/biz/wechat_notify.go b/internal/biz/wechat_notify.go index 280e9e7..0661fa0 100644 --- a/internal/biz/wechat_notify.go +++ b/internal/biz/wechat_notify.go @@ -78,7 +78,8 @@ func (v *VoucherBiz) expired(ctx context.Context, order *bo.OrderBo) error { return err } - return v.notify(ctx, order) + //return v.notify(ctx, order) + return nil // 过期不做通知 } func (v *VoucherBiz) notify(ctx context.Context, order *bo.OrderBo) error { diff --git a/internal/biz/wechat_query.go b/internal/biz/wechat_query.go index 166d296..df37155 100644 --- a/internal/biz/wechat_query.go +++ b/internal/biz/wechat_query.go @@ -61,6 +61,8 @@ func (v *VoucherBiz) wechatQuery(ctx context.Context, order *bo.OrderBo) error { if status.IsUse() { return v.used(ctx, order) + } else if status.IsExpired() { + return v.expired(ctx, order) } return nil