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