This commit is contained in:
邹宗楠
2022-04-08 14:35:10 +08:00
parent 5072e1f31e
commit d9f438ca26
3 changed files with 6 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ func (c *DeliveryHandler) CancelWaybill(bill *model.Waybill, cancelReasonID int,
OrderCancelRole: 2,
}
parameter.PartnerOrderCode = bill.VendorOrderID
fmt.Println("===============cancle", 3333)
if err = api.FnAPI.CancelOrder(parameter); err != nil {
if strings.Contains(err.Error(), "运单暂未生成") {
err = nil