public static UserAuthorizationModel userLogin(Page page) { UserAuthorizationModel userInfo = BaseClass.Common.Common.GetCookieUserData <UserAuthorizationModel>(page); if (userInfo == null) { if (!UserAuthorization.userAuthorize(page.Request, page)) { page.Response.Redirect("~/index/Login.aspx"); } } else { log4netHelper.WriteDebugLog(typeof(UserAuthorization), "userLogin", "取出用户登录信息,OpenId: " + userInfo.openId + " naeme: " + userInfo.name); return(userInfo); } return(null); }