/// <summary> /// 获取用户登录信息 /// </summary> /// <returns>用户登录信息 参见CookieModel</returns> public static CookieModel getCookieInfo() { CookieModel model = new CookieModel(); string cookieStr = ""; if (System.Web.HttpContext.Current.Session["SpringerSystemSession"] != null) { cookieStr = System.Web.HttpContext.Current.Session["SpringerSystemSession"].ToString(); } HttpCookie cookies = HttpContext.Current.Request.Cookies["SpringerSystem"]; if (string.IsNullOrEmpty(cookieStr) && cookies != null) { cookieStr = cookies["SpringerSystemCookie"]; } //if (HttpContext.Current.Request.Cookies["SpringerSystem"] != null) //{ // cookieStr = HttpContext.Current.Request.Cookies["SpringerSystem"]["SpringerSystemCookie"]; //} if (!string.IsNullOrEmpty(cookieStr)) { string[] arr = ClsStr.DecryptA01(cookieStr, "LOKUDJIE").Split(','); model.UID = ClsStr.DecryptA01(arr[0], "DKIDLEKD"); model.userName = ClsStr.DecryptA01(arr[1], "DKIDLEKD"); model.trueName = ClsStr.DecryptA01(arr[2], "DKIDLEKD"); } else { model.UID = ""; model.userName = ""; model.trueName = ""; } return(model); }