wuzilong 5 месяцев назад
Родитель
Сommit
47ec8eb9cc

+ 8 - 4
client-tauri/src-tauri/src/commands/buff_sweep_runner.rs

@@ -1295,10 +1295,14 @@ async fn http_get_steam(
             HeaderValue::from_static("\"Windows\""),
             HeaderValue::from_static("\"Windows\""),
         );
         );
         // 伪造的基础 Cookie(用于通过 Steam 的基础校验)
         // 伪造的基础 Cookie(用于通过 Steam 的基础校验)
-        headers.insert(
-            "Cookie",
-            HeaderValue::from_static("timezoneOffset=28800,0; steamCountry=CN%7Cxxxxxxxxxxxx"),
-        );
+        // 注意:Steam market `render` 接口额外携带 bMarketOptOut=1
+        let base_cookie = "timezoneOffset=28800,0; steamCountry=CN%7Cxxxxxxxxxxxx";
+        let cookie = if url.contains("/market/listings/") && url.contains("/render") {
+            format!("{base_cookie}; bMarketOptOut=1")
+        } else {
+            base_cookie.to_string()
+        };
+        headers.insert("Cookie", HeaderValue::from_str(&cookie).map_err(|e| e.to_string())?);
 
 
         let request_start = std::time::Instant::now();
         let request_start = std::time::Instant::now();
 
 

BIN
steam-client/steamAPI/bin/Debug/net8.0/SteamAuth.dll


BIN
steam-client/steamAPI/bin/Debug/net8.0/SteamAuth.pdb


BIN
steam-client/steamAPI/bin/Debug/net8.0/steamAPI.dll


BIN
steam-client/steamAPI/bin/Debug/net8.0/steamAPI.exe


BIN
steam-client/steamAPI/bin/Debug/net8.0/steamAPI.pdb


BIN
steam-client/steamAPI/obj/Debug/net8.0/apphost.exe


BIN
steam-client/steamAPI/obj/Debug/net8.0/ref/steamAPI.dll


BIN
steam-client/steamAPI/obj/Debug/net8.0/refint/steamAPI.dll


+ 1 - 1
steam-client/steamAPI/obj/Debug/net8.0/steamAPI.AssemblyInfo.cs

@@ -14,7 +14,7 @@ using System.Reflection;
 [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
 [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
 [assembly: System.Reflection.AssemblyDescriptionAttribute("Steam login verification local service")]
 [assembly: System.Reflection.AssemblyDescriptionAttribute("Steam login verification local service")]
 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
 [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e98b8642bcfe63fa398d22236811a878826b82fb")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9057b9a91f39da4e15fee385fe6c79172ab70141")]
 [assembly: System.Reflection.AssemblyProductAttribute("steamAPI")]
 [assembly: System.Reflection.AssemblyProductAttribute("steamAPI")]
 [assembly: System.Reflection.AssemblyTitleAttribute("steamAPI")]
 [assembly: System.Reflection.AssemblyTitleAttribute("steamAPI")]
 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
 [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

+ 1 - 1
steam-client/steamAPI/obj/Debug/net8.0/steamAPI.AssemblyInfoInputs.cache

@@ -1 +1 @@
-28467571756ff8026c1117bf49d93e369f8f734e5d8bfea0584ebdca9cbbb2e8
+09c0c5ab34f760ac72c0e2af9567cd6ad389b2a7a50b789595cef50333fef525

BIN
steam-client/steamAPI/obj/Debug/net8.0/steamAPI.csproj.AssemblyReference.cache


BIN
steam-client/steamAPI/obj/Debug/net8.0/steamAPI.dll


BIN
steam-client/steamAPI/obj/Debug/net8.0/steamAPI.pdb