SheQu/Models/CurrentUser.cs

(完整代码) 909B


using SheQu.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Web;


namespace SheQu
{
    public class CurrentUser
    {
        public static WebCache cache;
        /// <summary>
        /// 登陆信息
        /// </summary>
        public static Admins logininfor
        {
            get
            {
                if (cache == null)
                    cache = new WebCache();
                if (cache.GetSessionCache("logininfor") == null)
                    return logininfor = new Admins();
                return (Admins)cache.GetSessionCache("logininfor");

            }
            set
            {
                cache = new WebCache();
                cache.SetSessionCache("logininfor", value);
            }
        }

    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。