chore: update settings and project configuration for improved API request handling and output path

This commit is contained in:
danial
2025-11-11 15:54:42 +08:00
parent 06b0fcce08
commit ab02c1e66d
3 changed files with 10 additions and 8 deletions

View File

@@ -4,7 +4,8 @@
"Bash(find:*)", "Bash(find:*)",
"Bash(dotnet build:*)", "Bash(dotnet build:*)",
"Bash(dotnet publish:*)", "Bash(dotnet publish:*)",
"Bash(dotnet clean:*)" "Bash(dotnet clean:*)",
"Bash(dir:*)"
], ],
"deny": [], "deny": [],
"ask": [] "ask": []

View File

@@ -24,7 +24,7 @@
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<!-- 输出配置 --> <!-- 输出配置 -->
<OutputPath>bin\$(Configuration)\$(TargetFramework)</OutputPath> <OutputPath>bin\$(Configuration)\$(TargetFramework)\</OutputPath>
<DebugType Condition=" '$(Configuration)' == 'Debug' ">full</DebugType> <DebugType Condition=" '$(Configuration)' == 'Debug' ">full</DebugType>
<DebugType Condition=" '$(Configuration)' == 'Release' ">pdbonly</DebugType> <DebugType Condition=" '$(Configuration)' == 'Release' ">pdbonly</DebugType>
<DebugSymbols Condition=" '$(Configuration)' == 'Debug' ">true</DebugSymbols> <DebugSymbols Condition=" '$(Configuration)' == 'Debug' ">true</DebugSymbols>

View File

@@ -76,18 +76,19 @@ namespace AppleBatch_June
webHeaderCollection.Add("token", HttpUtility.UrlEncode(Tools.EncodeBase64(Encoding.UTF8.GetBytes(s)))); webHeaderCollection.Add("token", HttpUtility.UrlEncode(Tools.EncodeBase64(Encoding.UTF8.GetBytes(s))));
} }
webHeaderCollection.Add("version", FormLogin.versions); webHeaderCollection.Add("version", FormLogin.versions);
HttpItem httpItem = new HttpItem(); HttpItem httpItem = new HttpItem
httpItem.URL = host + "/AppleClientApi/requestApi"; {
httpItem.Method = "post"; URL = host + "/AppleClientApi/requestApi",
httpItem.Postdata = text4 + "&sign=" + mD5_2 + "&type=" + type; Method = "post",
httpItem.Headers["User-Agent"] = "liuyeu_AppleBatch_June"; Postdata = text4 + "&sign=" + mD5_2 + "&type=" + type
};
httpItem.Headers["User-Agent"] = "liuyeu_AppleBatch_June";
httpItem.ContentType = "application/x-www-form-urlencoded"; httpItem.ContentType = "application/x-www-form-urlencoded";
httpItem.Header = webHeaderCollection; httpItem.Header = webHeaderCollection;
httpItem.Timeout = 35000; httpItem.Timeout = 35000;
httpItem.KeepAlive = true; httpItem.KeepAlive = true;
HttpItem httpItem2 = httpItem; HttpItem httpItem2 = httpItem;
HttpResult html = httpHelper.GetHtml(httpItem2); HttpResult html = httpHelper.GetHtml(httpItem2);
MessageBox.Show(html.Html.ToString());
stopwatch.Stop(); stopwatch.Stop();
if (html.StatusCode == HttpStatusCode.OK) if (html.StatusCode == HttpStatusCode.OK)
{ {