private static decimal GetUserIdFromCookie() { decimal uid; if (UserState.getIsNeedActived()) { string strUid = UserCookies.getActiveCookies(UserCookies.ACTIVECOOKIE_NAME_USERID); decimal.TryParse(strUid, out uid); return(uid); } string authuid = UserCookies.getAuthCookie(UserCookies.AUTHCOOKIE_NAME_USERID); decimal.TryParse(authuid, out uid); return(uid); }
/** * 是否已经登录UC */ public static bool getIsUcLogin() { return(UserCookies.getAuthCookie(UserCookies.AUTHCOOKIE_NAME_USERID) != null); }
/** * 是否已经完善安全资料 */ public static string getIsSafeComplate() { return(UserCookies.getAuthCookie(UserCookies.AUTHCOOKIE_NAME_ISSAFLECOMPLATE)); }