This commit is contained in:
2024-03-23 07:30:24 +08:00
parent cb291691d5
commit 99b26d99f6
+2 -2
View File
@@ -40,9 +40,9 @@ public class SimApiCommonController(SimApiAuth auth) : SimApiBaseController
{ {
string token = null; string token = null;
if (Request.Headers.ContainsKey("Token")) if (Request.Headers.TryGetValue("Token", out var value))
{ {
token = Request.Headers["Token"]; token = value;
} }
auth.Logout(token); auth.Logout(token);