Ejemplo n.º 1
0
        /// <summary>
        /// 设置指定用户的登录状态为离线
        /// </summary>
        /// <param name="account">用户账号</param>
        /// <returns>JsonResult</returns>
        public JsonResult UserSignOut(string account)
        {
            var action = "331BF752-CDB7-44DE-9631-DF2605BB527E";
            var verify = new SessionVerify();

            if (verify.Basis.LoginName == account)
            {
                action = null;
            }

            if (!verify.Compare(action))
            {
                return(verify.Result);
            }

            SessionManage.Offline(account);
            return(verify.Result);
        }