From 8ee297e819293bc341b334e54c90e3707f579fb6 Mon Sep 17 00:00:00 2001 From: xRain Date: Tue, 12 May 2026 12:05:03 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AuthGate/SimApiAuthGate.cs b/AuthGate/SimApiAuthGate.cs index 6b5e3ed..40e88f2 100644 --- a/AuthGate/SimApiAuthGate.cs +++ b/AuthGate/SimApiAuthGate.cs @@ -99,7 +99,7 @@ public class SimApiAuthGate(SimApiAuthGateClient simapi) public SimApiAuthGateDto.GetCodeResponse GetAuthCode(string? scene = null, Dictionary? data = null, string? backUrl = null) { - var code = simapi.SignQuery("/api/auth/confirm/code", + var code = simapi.SignQuery("/api/auth/login/code", new { scene, data, backUrl }); return new SimApiAuthGateDto.GetCodeResponse() { @@ -117,7 +117,7 @@ public class SimApiAuthGate(SimApiAuthGateClient simapi) /// public SimApiAuthGateDto.AuthInfoResponse GetAuthInfo(string code, string? scene = null) { - var resp = simapi.SignQuery("/api/auth/confirm/get", new { code }); + var resp = simapi.SignQuery("/api/auth/login/get", new { code }); ErrorWhenNull(resp, 400232, "登录信息获取失败"); ErrorWhen(resp.Scene != scene, 403003, "登录场景不匹配"); return resp;