diff --git a/internal/biz/wechat_notify.go b/internal/biz/wechat_notify.go index 7907bbd..b64d7fe 100644 --- a/internal/biz/wechat_notify.go +++ b/internal/biz/wechat_notify.go @@ -2,7 +2,9 @@ package biz import ( "context" + "errors" "fmt" + "gorm.io/gorm" errPb "voucher/api/err" "voucher/internal/biz/bo" "voucher/internal/biz/vo" @@ -18,9 +20,9 @@ func (this *VoucherBiz) WechatNotifyConsumer(ctx context.Context, ip string, req order, err := this.getOrder(ctx, req) if err != nil { // 系统订单不存在 - //if errors.Is(err, gorm.ErrRecordNotFound) { - // return nil - //} + if errors.Is(err, gorm.ErrRecordNotFound) { + return nil + } return err }