private T getResp <T, R>(R request) { string queryParams = StockUtil.Base64Encode(URLHelper.GetDataWithOutEncode <R>(request), this.GB2312); string sellUrl = "https://tradegw.htsc.com.cn/?" + queryParams; Stopwatch watch = new Stopwatch(); watch.Start(); string strResp = this.httpClient.DownloadString(sellUrl); Console.WriteLine("请求耗时:{0}ms", watch.ElapsedMilliseconds); string resp = StockUtil.Base64Decode(strResp, this.GB2312); Console.WriteLine("Web操作返回结果", resp); T ret = JsonConvert.DeserializeObject <T>(resp); return(ret); }