From 2e364f03327390db1201dff9fe0f438b2ec77694 Mon Sep 17 00:00:00 2001 From: ziming Date: Thu, 26 Mar 2026 14:03:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=B8=BB=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/wechat_notify.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/internal/biz/wechat_notify.go b/internal/biz/wechat_notify.go index 94d576c..50b650e 100644 --- a/internal/biz/wechat_notify.go +++ b/internal/biz/wechat_notify.go @@ -2,9 +2,7 @@ package biz import ( "context" - "errors" "fmt" - "gorm.io/gorm" errPb "voucher/api/err" "voucher/internal/biz/bo" "voucher/internal/biz/vo" @@ -20,9 +18,9 @@ func (this *VoucherBiz) WechatNotifyConsumer(ctx context.Context, ip string, req // 商品数据量较少,先查询商品是否存在,过滤多余的通知信息 _, err := this.ProductRepo.GetByMchStockId(ctx, req.PlainText.StockCreatorMchid, req.PlainText.StockID) if err != nil { - if errors.Is(err, gorm.ErrRecordNotFound) { - return nil - } + //if errors.Is(err, gorm.ErrRecordNotFound) { + // return nil + //} return fmt.Errorf("商品查询错误 error: %w", err) }