/// <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")); }
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()); } } }
/// <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); } } }
protected virtual void UserLogon() { if (Fetch.IsUserOnline()) { this.userTicket = Fetch.GetUserCookie(); if (this.IsAuthenticatedMember) { this.IsMember(); return; } } else { this.ReLogon(); } }
/// <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); } } }
/// <summary> /// 用户登录 /// </summary> protected virtual void UserLogon() { if (Fetch.IsUserOnline()) { userTicket = Fetch.GetUserCookie(); //是否会员 if (IsAuthenticatedMember) { IsMember(); } } else { ReLogon(); } }