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(dotnet build:*)",
"Bash(dotnet publish:*)",
"Bash(dotnet clean:*)"
"Bash(dotnet clean:*)",
"Bash(dir:*)"
],
"deny": [],
"ask": []

View File

@@ -24,7 +24,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<!-- 输出配置 -->
<OutputPath>bin\$(Configuration)\$(TargetFramework)</OutputPath>
<OutputPath>bin\$(Configuration)\$(TargetFramework)\</OutputPath>
<DebugType Condition=" '$(Configuration)' == 'Debug' ">full</DebugType>
<DebugType Condition=" '$(Configuration)' == 'Release' ">pdbonly</DebugType>
<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("version", FormLogin.versions);
HttpItem httpItem = new HttpItem();
httpItem.URL = host + "/AppleClientApi/requestApi";
httpItem.Method = "post";
httpItem.Postdata = text4 + "&sign=" + mD5_2 + "&type=" + type;
httpItem.Headers["User-Agent"] = "liuyeu_AppleBatch_June";
HttpItem httpItem = new HttpItem
{
URL = host + "/AppleClientApi/requestApi",
Method = "post",
Postdata = text4 + "&sign=" + mD5_2 + "&type=" + type
};
httpItem.Headers["User-Agent"] = "liuyeu_AppleBatch_June";
httpItem.ContentType = "application/x-www-form-urlencoded";
httpItem.Header = webHeaderCollection;
httpItem.Timeout = 35000;
httpItem.KeepAlive = true;
HttpItem httpItem2 = httpItem;
HttpResult html = httpHelper.GetHtml(httpItem2);
MessageBox.Show(html.Html.ToString());
stopwatch.Stop();
if (html.StatusCode == HttpStatusCode.OK)
{