111
This commit is contained in:
@@ -18,12 +18,20 @@
|
||||
return token.Claims["userId"];
|
||||
}
|
||||
}
|
||||
public static string sid
|
||||
public static string accId
|
||||
{
|
||||
get
|
||||
{
|
||||
var token = App.HttpContext.GetTokenInfo();
|
||||
return token.Claims["token"];
|
||||
return token.Claims["accId"];
|
||||
}
|
||||
}
|
||||
public static int areaId
|
||||
{
|
||||
get
|
||||
{
|
||||
var token = App.HttpContext.GetTokenInfo();
|
||||
return Convert.ToInt32(token.Claims["areaId"]) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user