修正了错误

This commit is contained in:
2026-05-12 12:09:36 +08:00
parent 8ee297e819
commit 611808787e
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ public class SimApiAuthGate(SimApiAuthGateClient simapi)
/// <param name="data"></param> /// <param name="data"></param>
/// <param name="backUrl"></param> /// <param name="backUrl"></param>
/// <returns></returns> /// <returns></returns>
public SimApiAuthGateDto.GetCodeResponse GetAuthCode(string? scene = null, Dictionary<string, object>? data = null, public SimApiAuthGateDto.GetCodeResponse GetLoginCode(string? scene = null, Dictionary<string, object>? data = null,
string? backUrl = null) string? backUrl = null)
{ {
var code = simapi.SignQuery<string>("/api/auth/login/code", var code = simapi.SignQuery<string>("/api/auth/login/code",
@@ -115,9 +115,9 @@ public class SimApiAuthGate(SimApiAuthGateClient simapi)
/// <param name="code"></param> /// <param name="code"></param>
/// <param name="scene"></param> /// <param name="scene"></param>
/// <returns></returns> /// <returns></returns>
public SimApiAuthGateDto.AuthInfoResponse GetAuthInfo(string code, string? scene = null) public SimApiAuthGateDto.LoginInfoResponse GetLoginInfo(string code, string? scene = null)
{ {
var resp = simapi.SignQuery<SimApiAuthGateDto.AuthInfoResponse>("/api/auth/login/get", new { code }); var resp = simapi.SignQuery<SimApiAuthGateDto.LoginInfoResponse>("/api/auth/login/get", new { code });
ErrorWhenNull(resp, 400232, "登录信息获取失败"); ErrorWhenNull(resp, 400232, "登录信息获取失败");
ErrorWhen(resp.Scene != scene, 403003, "登录场景不匹配"); ErrorWhen(resp.Scene != scene, 403003, "登录场景不匹配");
return resp; return resp;
+1 -1
View File
@@ -21,7 +21,7 @@ public class SimApiAuthGateDto
public Dictionary<string, object>? Data { get; set; } public Dictionary<string, object>? Data { get; set; }
} }
public class AuthInfoResponse public class LoginInfoResponse
{ {
public string? Scene { get; set; } public string? Scene { get; set; }
public Dictionary<string, object>? Data { get; set; } public Dictionary<string, object>? Data { get; set; }