示例#1
0
        /// <summary>
        /// 页面加锁
        /// </summary>
        public IActionResult OnPost()
        {
            //缓存中添加页面锁定消息
            var tokenId = User.GetTokenIdOrNull();

            _cacheService.Add(string.Format(CacheKeyDefinition.PageLock, tokenId), true, TimeSpan.FromMinutes(_jwtProvider.GetJwtConfig().ExpiredMinutes));
            return(Json(true));
        }