From ab02c1e66d11591faed58a5c15e8a4932ac71b10 Mon Sep 17 00:00:00 2001 From: danial Date: Tue, 11 Nov 2025 15:54:42 +0800 Subject: [PATCH] chore: update settings and project configuration for improved API request handling and output path --- .claude/settings.local.json | 3 ++- AppleBatch_June.csproj | 2 +- AppleBatch_June/ApiNetReq.cs | 13 +++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 14e3ef9..0ef04b9 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -4,7 +4,8 @@ "Bash(find:*)", "Bash(dotnet build:*)", "Bash(dotnet publish:*)", - "Bash(dotnet clean:*)" + "Bash(dotnet clean:*)", + "Bash(dir:*)" ], "deny": [], "ask": [] diff --git a/AppleBatch_June.csproj b/AppleBatch_June.csproj index c7c416b..ad2cf3d 100644 --- a/AppleBatch_June.csproj +++ b/AppleBatch_June.csproj @@ -24,7 +24,7 @@ AnyCPU - bin\$(Configuration)\$(TargetFramework) + bin\$(Configuration)\$(TargetFramework)\ full pdbonly true diff --git a/AppleBatch_June/ApiNetReq.cs b/AppleBatch_June/ApiNetReq.cs index cc9348c..d4c4825 100644 --- a/AppleBatch_June/ApiNetReq.cs +++ b/AppleBatch_June/ApiNetReq.cs @@ -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) {