From 611808787e215be293e905a896046d9c3be75267 Mon Sep 17 00:00:00 2001 From: xRain Date: Tue, 12 May 2026 12:09:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AuthGate/SimApiAuthGate.cs | 6 +++--- AuthGate/SimApiAuthGateDto.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AuthGate/SimApiAuthGate.cs b/AuthGate/SimApiAuthGate.cs index 40e88f2..a481c04 100644 --- a/AuthGate/SimApiAuthGate.cs +++ b/AuthGate/SimApiAuthGate.cs @@ -96,7 +96,7 @@ public class SimApiAuthGate(SimApiAuthGateClient simapi) /// /// /// - public SimApiAuthGateDto.GetCodeResponse GetAuthCode(string? scene = null, Dictionary? data = null, + public SimApiAuthGateDto.GetCodeResponse GetLoginCode(string? scene = null, Dictionary? data = null, string? backUrl = null) { var code = simapi.SignQuery("/api/auth/login/code", @@ -115,9 +115,9 @@ public class SimApiAuthGate(SimApiAuthGateClient simapi) /// /// /// - public SimApiAuthGateDto.AuthInfoResponse GetAuthInfo(string code, string? scene = null) + public SimApiAuthGateDto.LoginInfoResponse GetLoginInfo(string code, string? scene = null) { - var resp = simapi.SignQuery("/api/auth/login/get", new { code }); + var resp = simapi.SignQuery("/api/auth/login/get", new { code }); ErrorWhenNull(resp, 400232, "登录信息获取失败"); ErrorWhen(resp.Scene != scene, 403003, "登录场景不匹配"); return resp; diff --git a/AuthGate/SimApiAuthGateDto.cs b/AuthGate/SimApiAuthGateDto.cs index 47b80e4..c2e4f32 100644 --- a/AuthGate/SimApiAuthGateDto.cs +++ b/AuthGate/SimApiAuthGateDto.cs @@ -21,7 +21,7 @@ public class SimApiAuthGateDto public Dictionary? Data { get; set; } } - public class AuthInfoResponse + public class LoginInfoResponse { public string? Scene { get; set; } public Dictionary? Data { get; set; }