创建项目
This commit is contained in:
21
Service/Application.Web/Common/StateHelper.cs
Normal file
21
Service/Application.Web/Common/StateHelper.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace Application.Web
|
||||
{
|
||||
public class StateHelper
|
||||
{
|
||||
public static string userId
|
||||
{
|
||||
get {
|
||||
var token = App.HttpContext.GetTokenInfo();
|
||||
return token.Claims["userId"];
|
||||
}
|
||||
}
|
||||
public static string sid
|
||||
{
|
||||
get
|
||||
{
|
||||
var token = App.HttpContext.GetTokenInfo();
|
||||
return token.Claims["sid"];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user