This commit is contained in:
richboo111
2023-02-02 11:10:08 +08:00
parent bbef8a7334
commit 38490d24f6
2 changed files with 3 additions and 3 deletions

View File

@@ -150,7 +150,7 @@ func (a *API) GetShipmentInfo(shopOrderID, afterSaleID, shipmentType int64) (*su
return nil, err
}
if strings.Contains(response.SubMsg, "当前查询单据不存在:订单不存在") {
if strings.Contains(response.SubMsg, "当前查询单据不存在:订单不存在") || strings.Contains(response.SubMsg, "未找到当前物流订单, LO") {
return &superm_getShipmentInfo_response.ShipmentInfo{
ShopOrderID: shopOrderID,
AfterSaleID: 0,
@@ -163,7 +163,7 @@ func (a *API) GetShipmentInfo(shopOrderID, afterSaleID, shipmentType int64) (*su
RiderLongitude: "",
RiderLatitude: "",
OccurredTime: "",
}, err
}, nil
}
if response.Code != RequestSuccessCode {

View File

@@ -36,5 +36,5 @@ func Test(t *testing.T) {
}
func TestGetShipmentInfo(t *testing.T) {
a.GetShipmentInfo(5030006277901491620, 0, ShipmentTypeInvoice)
a.GetShipmentInfo(5030274019371220703, 0, ShipmentTypeInvoice)
}