Merge branch 'master' into net6.0

This commit is contained in:
不做码农
2022-03-24 12:42:13 +08:00
25 changed files with 2284 additions and 192 deletions

View File

@@ -79,6 +79,12 @@ namespace ZR.Admin.WebApi.Extensions
return uid;
}
public static bool IsAdmin(this HttpContext context)
{
long id = GetUId(context);
return id == 1;
}
/// <summary>
/// ClaimsIdentity
/// </summary>