예제 #1
0
        /// <summary>
        /// 通用调用方法
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public static JObject GetJsonObject(string url)
        {
            string val = HttpRequestWapper.GetData(url);

            if (string.IsNullOrEmpty(val))
            {
                return(null);
            }
            return(JsonConvert.DeserializeObject(val) as JObject);
        }
예제 #2
0
        public static bool GetBoolean(string url, string ticket)
        {
            string val = HttpRequestWapper.GetData(url, ticket);

            return(val.ToLower() == "true");
        }