From e5e73e70b5179309225609cadc62dfaa5f3de6f1 Mon Sep 17 00:00:00 2001 From: ziming Date: Tue, 17 Jun 2025 09:23:51 +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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/biz/cron_notice.go b/internal/biz/cron_notice.go index e61a073..52cd19d 100644 --- a/internal/biz/cron_notice.go +++ b/internal/biz/cron_notice.go @@ -164,6 +164,12 @@ func (v *VoucherBiz) orderNotice(ctx context.Context, order *bo.OrderBo, notifyN return fmt.Errorf("订单对象为 nil") } + defer func() { + if err := recover(); err != nil { + respErr = fmt.Errorf("panic,err:%v", err) + } + }() + return v.notice(ctx, order, notifyNum) }