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) }