/// <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); }
public static bool GetBoolean(string url, string ticket) { string val = HttpRequestWapper.GetData(url, ticket); return(val.ToLower() == "true"); }