This commit is contained in:
ziming 2025-06-18 09:09:06 +08:00
parent 748ca3052b
commit b743aca6fa
1 changed files with 8 additions and 2 deletions

View File

@ -162,7 +162,7 @@ func (v *VoucherBiz) orderNotice(ctx context.Context, order *bo.OrderBo, notifyN
defer func() { defer func() {
if err := recover(); err != nil { if err := recover(); err != nil {
respErr = fmt.Errorf("panic,err:%v", err) respErr = fmt.Errorf("panic:%v", err)
} }
}() }()
@ -205,7 +205,13 @@ func (v *VoucherBiz) notice(ctx context.Context, order *bo.OrderBo, notifyNum *i
return v.UpdateOrderStatus(ctx, order.ID, status) return v.UpdateOrderStatus(ctx, order.ID, status)
} }
func (v *VoucherBiz) request(ctx context.Context, order *bo.OrderBo, orderNotify *bo.OrderNotifyBo, notifyNum *int) error { func (v *VoucherBiz) request(ctx context.Context, order *bo.OrderBo, orderNotify *bo.OrderNotifyBo, notifyNum *int) (respErr error) {
defer func() {
if err := recover(); err != nil {
respErr = fmt.Errorf("panic:%v,orderNo:%s", err, order.OrderNo)
}
}()
if !orderNotify.Event.CanNotify() { if !orderNotify.Event.CanNotify() {
return nil // 不可通知,忽略 return nil // 不可通知,忽略