示例#1
0
        /// <summary>
        /// 初始化页面基类
        /// </summary>
        public UCPageBase()
        {
            this.m_isOnLine  = Fetch.IsUserOnline();
            this.m_stationID = Fetch.StationID;

            aideWebsiteFacade = new GameWebFacade();
            aideUserFacade    = new AccountsFacade();

            LogonUrl    = "../Login.aspx";
            RawUrl      = Utils.GameRequest.GetUrl();
            RedirectUrl = Utility.UrlDecode(GameRequest.GetQueryString("redirectUrl"));
        }
示例#2
0
 public static void ReWriteUserCookie()
 {
     if (Fetch.IsUserOnline())
     {
         UserTicketInfo userCookie = Fetch.GetUserCookie();
         Message        message    = FacadeManage.aideAccountsFacade.Logon(new UserInfo(userCookie), false);
         if (message.Success)
         {
             UserInfo item = message.EntityList[0] as UserInfo;
             Fetch.SetUserCookie(item.ToUserTicketInfo());
         }
     }
 }
示例#3
0
        /// <summary>
        /// 登录并重写 Cookie
        /// </summary>
        public static void ReWriteUserCookie()
        {
            if (Fetch.IsUserOnline())
            {
                UserTicketInfo uti = Fetch.GetUserCookie();
                Message        msg = FacadeManage.aideAccountsFacade.Logon(new UserInfo(uti), false);
                if (msg.Success)
                {
                    UserInfo       usInfo    = msg.EntityList[0] as UserInfo;
                    UserTicketInfo utiServer = usInfo.ToUserTicketInfo();

                    Fetch.SetUserCookie(utiServer);
                }
            }
        }
示例#4
0
 protected virtual void UserLogon()
 {
     if (Fetch.IsUserOnline())
     {
         this.userTicket = Fetch.GetUserCookie();
         if (this.IsAuthenticatedMember)
         {
             this.IsMember();
             return;
         }
     }
     else
     {
         this.ReLogon();
     }
 }
示例#5
0
文件: Fetch.cs 项目: archangelwin/QY
        /// <summary>
        /// 后台登录并重写 Cookie
        /// </summary>
        public static void ReWriteUserCookie()
        {
            if (Fetch.IsUserOnline())
            {
                UserTicketInfo uti = Fetch.GetUserCookie();
                Message        msg = accountsData.Logon(new UserInfo(uti), false);
                if (msg.Success)
                {
                    UserInfo       usInfo    = msg.EntityList[0] as UserInfo;
                    UserTicketInfo utiServer = usInfo.ToUserTicketInfo();
                    utiServer.LogonPass = uti.LogonPass;

                    Fetch.SetUserCookie(utiServer);
                }
            }
        }
示例#6
0
        /// <summary>
        /// 用户登录
        /// </summary>
        protected virtual void UserLogon()
        {
            if (Fetch.IsUserOnline())
            {
                userTicket = Fetch.GetUserCookie();

                //是否会员
                if (IsAuthenticatedMember)
                {
                    IsMember();
                }
            }
            else
            {
                ReLogon();
            }
        }