mirror of
https://git.oceanpay.cc/danial/kami_itunes_june.git
synced 2025-12-18 22:31:24 +00:00
chore: update settings and project configuration for improved API request handling and output path
This commit is contained in:
@@ -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": []
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user