private StringBuilder GetLevelPermission(RolePermissionType rolePerssionType, List <MemberRoleEntity> roleMenuList, StringBuilder sbPermissionString)
        {
            var roleMenu = roleMenuList.Where(m => m.RoleId == rolePerssionType.ToInt32OrDefault()).FirstOrDefault();

            if (roleMenu != null)
            {
                var menuPermission = SerializeUtil.DeserializeToObject <MenuPerssion>(roleMenu.MenuPermission);

                for (int i = 0; i < menuPermission.VisibleToLogin.Count; ++i)
                {
                    sbPermissionString.Replace('0', '3', menuPermission.VisibleToLogin[i] - 1, 1);
                }

                for (int i = 0; i < menuPermission.VisibleUnenforceable.Count; ++i)
                {
                    sbPermissionString.Replace('0', '1', menuPermission.VisibleUnenforceable[i] - 1, 1);
                }
                for (int i = 0; i < menuPermission.Executable.Count; ++i)
                {
                    sbPermissionString.Replace('0', '2', menuPermission.Executable[i] - 1, 1);
                }
            }

            return(sbPermissionString);
        }
        public static TokenInfo GetTokenInfo()
        {
            var token = HttpContext.Current.Request.Headers["Token"];

            return(SerializeUtil.DeserializeToObject <TokenInfo>(JwtUtil.GetJwtDecode(token)));
        }
 /// <summary>
 /// 获取TokenInfo实体
 /// </summary>
 /// <param name="token"></param>
 /// <returns></returns>
 public static TokenInfo GetTokenInfo(string token)
 {
     return(SerializeUtil.DeserializeToObject <TokenInfo>(JwtUtil.GetJwtDecode(token)));
 }