From 09a8ef9e39393f5e4a3aa40a67a22282c1588032 Mon Sep 17 00:00:00 2001 From: ziming Date: Tue, 17 Jun 2025 09:29:59 +0800 Subject: [PATCH] =?UTF-8?q?req=20=E5=89=AF=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/cron_notice.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/biz/cron_notice.go b/internal/biz/cron_notice.go index abfe8de..75d0873 100644 --- a/internal/biz/cron_notice.go +++ b/internal/biz/cron_notice.go @@ -160,16 +160,16 @@ func (v *VoucherBiz) ExecuteNotice(ctx context.Context, req *bo.FindInBatchesUse func (v *VoucherBiz) orderNotice(ctx context.Context, order *bo.OrderBo, notifyNum *int) (respErr error) { - if order == nil { - return fmt.Errorf("订单对象为 nil") - } - defer func() { if err := recover(); err != nil { respErr = fmt.Errorf("panic,err:%v", err) } }() + if order == nil { + return fmt.Errorf("订单对象为 nil") + } + return v.notice(ctx, order, notifyNum) }