コード例 #1
0
        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);
        }
コード例 #2
0
        /**
         * 是否已经登录UC
         */

        public static bool getIsUcLogin()
        {
            return(UserCookies.getAuthCookie(UserCookies.AUTHCOOKIE_NAME_USERID) != null);
        }
コード例 #3
0
        /**
         * 是否已经完善安全资料
         */

        public static string getIsSafeComplate()
        {
            return(UserCookies.getAuthCookie(UserCookies.AUTHCOOKIE_NAME_ISSAFLECOMPLATE));
        }