This commit is contained in:
Putoo
2026-04-27 14:17:52 +08:00
parent 4463f9e810
commit c55a104573
16 changed files with 168 additions and 88 deletions

View File

@@ -2,6 +2,15 @@
{
public class StateHelper
{
public static bool isOnline
{
get
{
var token = App.HttpContext.GetTokenInfo();
return token != null;
}
}
public static string userId
{
get {
@@ -14,7 +23,7 @@
get
{
var token = App.HttpContext.GetTokenInfo();
return token.Claims["sid"];
return token.Claims["token"];
}
}
}