|
|
7 달 전 | |
|---|---|---|
| .. | ||
| bin | 7 달 전 | |
| obj | 7 달 전 | |
| publish | 7 달 전 | |
| Program.cs | 7 달 전 | |
| README.md | 7 달 전 | |
| steamAPI.csproj | 7 달 전 | |
Steam 登录验证本地服务,供客户端调用:使用账号、密码 + maFile 完成 Steam 登录,返回 session、steam_id、cookies 等。
在项目目录下执行:
cd steam-client/steamAPI
dotnet run
dotnet run --urls "http://localhost:5000"
默认监听 http://localhost:5000(客户端 Tauri 代码中写死为该地址)。
dotnet run --urls "http://localhost:5000"
# 或使用其他端口,例如 5001,同时需修改客户端中 verify_steam_login 的 api_url
dotnet run --urls "http://localhost:5001"
dotnet publish -c Release -r win-x64 --self-contained
输出在 bin/Release/net8.0/win-x64/publish/,可直接运行其中的 steamAPI.exe。
{ "Username": "steam用户名", "Password": "密码", "MaFilePath": "maFile 完整路径" }session(steamId、accessToken、refreshToken、sessionId)及 cookies(含 steamLoginSecure 等)SteamAuth 及 NuGet 包 SteamKit2、Microsoft.AspNetCore.App。首次运行会自动还原包。