Sry.Solution.Components/CurrentUser.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Sry.Solution.Components
{
    /// <summary>
    /// 登陆人信息
    /// </summary>
    public class CurrentUser
    {
        public static int LoginID
        {
            get
            {
                if (HttpContext.Current.Application["loginID"] != null)
                    return int.Parse(HttpContext.Current.Application["loginID"].ToString());
                else
                    return 0;
            }
        }

        public static string LoginName
        {
            get {
                if (HttpContext.Current.Application["loginName"] != null)
                    return HttpContext.Current.Application["loginName"].ToString();
                else
                    return "";
            }
        }

        public static string TrueName
        {
            get {
                if (HttpContext.Current.Application["trueName"] != null)
                    return HttpContext.Current.Application["trueName"].ToString();
                else
                    return "";
            }
        }

        public static string LoginPwd
        {
            get
            {
                if (HttpContext.Current.Application["loginPwd"] != null)
                    return HttpContext.Current.Application["loginPwd"].ToString();
                else
                    return "";
            }
        }

        public static string LoginIP
        {
            get
            {
                if (HttpContext.Current.Application["loginIP"] != null)
后面还有 18 行代码,购买后查看完整代码

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

AI 解读 AI

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

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