This commit is contained in:
邹宗楠
2023-09-26 09:43:03 +08:00
parent 89b9906d2c
commit 91969d8249
2 changed files with 17 additions and 15 deletions

View File

@@ -987,13 +987,11 @@ func (c *PurchaseHandler) CancelLogisticsByWmOrderId(order *model.GoodsOrder, re
func (c *PurchaseHandler) OrderLogisticsStatus(orderId string) (data *utils.RiderInfo, err error) {
orderInfo, err := dao.GetSimpleOrder(dao.GetDB(), orderId)
if err != nil {
data.LogisticsStatus = 0
return data, errors.New("获取本地门店账号信息失败,请重试")
}
waybill, err := getAPI(orderInfo.VendorOrgCode, 0, "").GetShipmentInfo(utils.Str2Int64(orderInfo.VendorOrderID), 0, tiktokShop.ShipmentTypeInvoice)
if err != nil {
data.LogisticsStatus = 0
return data, err
}