log
This commit is contained in:
parent
748ca3052b
commit
b743aca6fa
|
|
@ -162,7 +162,7 @@ func (v *VoucherBiz) orderNotice(ctx context.Context, order *bo.OrderBo, notifyN
|
|||
|
||||
defer func() {
|
||||
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)
|
||||
}
|
||||
|
||||
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() {
|
||||
return nil // 不可通知,忽略
|
||||
|
|
|
|||
Loading…
Reference in New Issue