From 764d74e902a04f2b3690d6975bb7ea099a84ed2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 19 May 2023 11:13:07 +0800 Subject: [PATCH] 1 --- business/partner/delivery/fn/waybill.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/partner/delivery/fn/waybill.go b/business/partner/delivery/fn/waybill.go index 1708c1cf7..c6b403c6a 100644 --- a/business/partner/delivery/fn/waybill.go +++ b/business/partner/delivery/fn/waybill.go @@ -73,6 +73,9 @@ func (c *DeliveryHandler) CancelWaybill(bill *model.Waybill, cancelReasonID int, err = nil } } + if err != nil { + return err + } bill.Status = model.WaybillStatusCanceled bill.Remark = cancelReason