同步物流单功能

This commit is contained in:
wule committed 2026-09-24 10:29:44 +08:00
1 parent 78ef8eedf3
commit ce8fb3f311
21 files changed
+952 -198

No files matched your search

+10
View File
@@ -1155,6 +1155,14 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
{
return await PostUtf8Async(url, postData, contentType: "application/json", timeOut: timeOut);
}
public static string PostJson(string url, object postData, int timeOut = -1)
{
return PostUtf8(url, JsonHelper.SerializeObject(postData), contentType: "application/json", timeOut: timeOut);
}
public static string PostJson(string url, string postData, int timeOut = -1)
{
return PostUtf8(url, postData, contentType: "application/json", timeOut: timeOut);
}
/// <summary>
/// post 数据
/// </summary>
@@ -1172,6 +1180,8 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
request.KeepAlive = true;
request.ContentType = "application/x-www-form-urlencoded; charset=utf-8";
if (!string.IsNullOrEmpty(contentType))
request.ContentType = contentType;
//request.Headers.Add("sec-ch-ua", @"""Not(A:Brand"";v=""8"", ""Chromium"";v=""144"", ""Google Chrome"";v=""144""");
//request.Headers.Add("sec-ch-ua-mobile", @"?0");
//request.Headers.Add("sec-ch-ua-platform", @"""Windows""");