增加查询同步物流订单状态

This commit is contained in:
chfei committed 2026-09-24 09:42:23 +08:00
1 parent ae1949c9c2
commit e126c6c0ff
6 files changed
+101 -5

No files matched your search

@@ -131,12 +131,30 @@ public class LogisticsController : ApiControllerBase
return Ok(ApiResult.Fail(ex.Message));
}
}
//[HttpPost]
//public IHttpActionResult GetSyncLogistics(string orderId)
//{
// try
// {
// var result = _logisticsService.GetSyncLogistics(orderId);
// return Ok(ApiResult.Success(result));
// }
// catch (Exception ex)
// {
// return Ok(ApiResult.Fail(ex.Message));
// }
//}
/// <summary>
/// 查询订单中状态
/// </summary>
/// <param name="orderId"></param>
/// <returns></returns>
[HttpPost]
public IHttpActionResult GetSyncLogistics(string orderId)
public IHttpActionResult GetOrderStatus(string orderId)
{
try
{
var result = _logisticsService.GetSyncLogistics(orderId);
var result = _logisticsService.GetOrderStatus([orderId]);
return Ok(ApiResult.Success(result));
}
catch (Exception ex)