fix: point SmallBag track upsert to ProviderService/Order/UpsertSmallBag
Align OMS TrackCenter client with the renamed UpsertSmallBag endpoint. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
a55668ec33
commit
17fe638be6
@ -1,7 +1,7 @@
|
||||
namespace Oms.Application.Integrations.SmallBagTrack;
|
||||
|
||||
/// <summary>
|
||||
/// POST /OrderV2/UpsertSmallBag 业务请求体(公共参数 appKey/timestamp/sign 走 HTTP Header)。
|
||||
/// POST /ProviderService/Order/UpsertSmallBag 业务请求体(公共参数 appKey/timestamp/sign 走 HTTP Header)。
|
||||
/// </summary>
|
||||
internal sealed class SmallBagTrackUpsertApiRequest
|
||||
{
|
||||
@ -35,5 +35,5 @@ internal sealed class SmallBagTrackUpsertApiRequest
|
||||
};
|
||||
|
||||
public static string BuildEndpointUrl(string baseUrl) =>
|
||||
$"{baseUrl.Trim().TrimEnd('/')}/OrderV2/UpsertSmallBag";
|
||||
$"{baseUrl.Trim().TrimEnd('/')}/ProviderService/Order/UpsertSmallBag";
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
namespace Oms.Application.Integrations.SmallBagTrack;
|
||||
|
||||
/// <summary>
|
||||
/// POST /OrderV2/UpsertSmallBag 请求体。
|
||||
/// POST /ProviderService/Order/UpsertSmallBag 请求体。
|
||||
/// </summary>
|
||||
public class SmallBagTrackUpsertRequest
|
||||
{
|
||||
|
||||
@ -1973,7 +1973,7 @@ public partial class OrderService
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 小包预报成功后异步同步轨迹订单(POST /OrderV2/UpsertSmallBag)。
|
||||
/// 小包预报成功后异步同步轨迹订单(POST /ProviderService/Order/UpsertSmallBag)。
|
||||
/// </summary>
|
||||
private async Task EnqueueSmallBagTrackUpsertAsync(
|
||||
Order order,
|
||||
|
||||
@ -15,7 +15,7 @@ public class OrderBatchTrackUpsertResultBuilderTests
|
||||
{
|
||||
Skipped = false,
|
||||
Success = true,
|
||||
Url = "http://track/OrderV2/UpsertSmallBag",
|
||||
Url = "http://track/ProviderService/Order/UpsertSmallBag",
|
||||
RequestJson = "{\"orderNo\":\"IDE001\"}",
|
||||
StatusCode = 200,
|
||||
ResponseBody = "{\"code\":0,\"data\":{\"id\":1001}}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user