|
@@ -612,7 +612,7 @@ namespace XYY.Service.Standard.ChannelApi.UBI
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
|
- public List<DataItem> data { get; set; }
|
|
|
+ public List<GetTrackingResultItem> data { get; set; }
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
@@ -625,7 +625,7 @@ namespace XYY.Service.Standard.ChannelApi.UBI
|
|
|
}
|
|
|
public async Task<string> GetTrackingNumber(string SystemNo, string TrackingNumber, string ServiceOrderNo, Logistics_Channel channel)
|
|
|
{
|
|
|
- string str = await Send(channel, new string[] { TrackingNumber }, "Post", "/services/shippping/trackingNumbers");
|
|
|
+ string str = await Send(channel, new string[] { TrackingNumber }, "POST", "/services/shipper/trackingNumbers");
|
|
|
GetTrackingResult trackingResult = Newtonsoft.Json.JsonConvert.DeserializeObject<GetTrackingResult>(str);
|
|
|
if (trackingResult.status == "Success")
|
|
|
{
|
|
@@ -633,7 +633,8 @@ namespace XYY.Service.Standard.ChannelApi.UBI
|
|
|
{
|
|
|
if (trackingResult.data[0].status == "Success")
|
|
|
{
|
|
|
- return trackingResult.data[0].trackingNo;
|
|
|
+ if (trackingResult.data[0].relabelStatus == 2)
|
|
|
+ return trackingResult.data[0].trackingNo;
|
|
|
}
|
|
|
}
|
|
|
}
|