From de9f99e62b91afd7f004f84df6b3e63095ec4bf4 Mon Sep 17 00:00:00 2001 From: ziming Date: Tue, 27 May 2025 11:46:28 +0800 Subject: [PATCH] mock use --- internal/biz/wechat_notify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/biz/wechat_notify.go b/internal/biz/wechat_notify.go index 14eccc0..71ee667 100644 --- a/internal/biz/wechat_notify.go +++ b/internal/biz/wechat_notify.go @@ -30,6 +30,8 @@ func (v *VoucherBiz) WechatNotifyConsumer(ctx context.Context, tag string, req * } else if req.PlainText.Status.IsUsed() { + _ = v.wxToBBUse(ctx, order, req) + if err = v.used(ctx, order); err != nil { return err } @@ -58,8 +60,6 @@ func (v *VoucherBiz) useLog(ctx context.Context, order *bo.OrderBo, req *bo.Wech } } - _ = v.wxToBBUse(ctx, order, req) - return nil }