增加查询同步物流订单状态
This commit is contained in:
1 parent
ae1949c9c2
commit
e126c6c0ff
6 files changed
+101
-5
No files matched your search
@@ -147,6 +147,34 @@ public class VirtualLogisticsApi : ISingletonDependency
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询快递订单信息及状态
|
||||
/// </summary>
|
||||
public Result<List<OrderStatusResultItem>> GetOrderStatus(string[] orders)
|
||||
{
|
||||
var res = ServerRequest<Dictionary<string, OrderStatusResultItem>>(new HttpItem
|
||||
{
|
||||
URL = "/api/lipin/status",
|
||||
Postdata = JsonConvert.SerializeObject(new
|
||||
{
|
||||
show_delivery = 1,
|
||||
order_sn = orders
|
||||
}),
|
||||
Method = MethodType.Post
|
||||
});
|
||||
|
||||
var ret = new Result<List<OrderStatusResultItem>>()
|
||||
{
|
||||
Code = res.Code,
|
||||
Success = res.Success,
|
||||
Msg = res.Msg,
|
||||
};
|
||||
if (res.Success)
|
||||
{
|
||||
ret.Data = res.Data.Values.ToList();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -165,7 +193,7 @@ public class VirtualLogisticsApi : ISingletonDependency
|
||||
}
|
||||
item.Encoding = Encoding.UTF8;
|
||||
|
||||
item.ProxyIp = "127.0.0.1:8080";
|
||||
//item.ProxyIp = "127.0.0.1:8080";
|
||||
|
||||
long unix = DateHelper.GetCurrentUnixTimestampInSeconds();
|
||||
|
||||
|
||||
Reference in new issue
Block a user