示例#1
0
        /// <summary>
        /// 验证请求token是否合法
        /// </summary>
        /// <param name="token">用户登录token</param>
        /// <param name="response">response对象</param>
        /// <returns>true:非法</returns>
        protected bool IsTokenInvalid <T>(string token, out ResponseContext <T> response)
        {
            response = new ResponseContext <T>();
            ErrCode errCode;
            bool    isInvalid = IsTokenInvalid(token, out errCode);

            if (isInvalid)
            {
                response.SetErrorCode(errCode);
            }

            return(isInvalid);
        }