From 668cc3177e5c31a135f29b307bb9161b45d55604 Mon Sep 17 00:00:00 2001 From: ziming Date: Wed, 21 May 2025 14:54:51 +0800 Subject: [PATCH] kg --- internal/biz/wechat_notify.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/biz/wechat_notify.go b/internal/biz/wechat_notify.go index b0ee68e..601f562 100644 --- a/internal/biz/wechat_notify.go +++ b/internal/biz/wechat_notify.go @@ -34,11 +34,7 @@ func (v *VoucherBiz) WechatNotifyConsumer(ctx context.Context, tag string, req * return err } - if err = v.useLog(ctx, order, req); err != nil { - return err - } - - return v.wxToBBUse(ctx, order, req) + return v.useLog(ctx, order, req) } else if req.PlainText.Status.IsExpired() { @@ -79,7 +75,7 @@ func (v *VoucherBiz) useLog(ctx context.Context, order *bo.OrderBo, req *bo.Wech } } - return nil + return v.wxToBBUse(ctx, order, req) } func (v *VoucherBiz) used(ctx context.Context, order *bo.OrderBo) error {