From 74ca5a83f24c53c48ad7e6f5b7739649fb411546 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期四, 17 七月 2025 17:19:53 +0800 Subject: [PATCH] 优化部分日志和未使用代码 --- util/HttpHelper.cs | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/util/HttpHelper.cs b/util/HttpHelper.cs index d509893..44c3df4 100644 --- a/util/HttpHelper.cs +++ b/util/HttpHelper.cs @@ -84,7 +84,6 @@ Stream stream = null; WebResponse rsp = null; try { - rsp = request.GetResponse(); stream = rsp.GetResponseStream(); reader = new StreamReader(stream); @@ -101,7 +100,6 @@ if (stream != null) stream.Close(); if (rsp != null) rsp.Close(); } - } public string Post(string url, string postData, string contentType = "application/json", string sessionId = "") { @@ -137,7 +135,6 @@ if (stream != null) stream.Close(); if (rsp != null) rsp.Close(); } - } public string Post(string url, Dictionary<string, string> dic) { @@ -173,7 +170,6 @@ } catch (Exception e) { - LogHelper.Info($"PostWithCookie res={e.Message}", "API"); return ""; } @@ -183,7 +179,6 @@ if (stream != null) stream.Close(); if (rsp != null) rsp.Close(); } - } public string Put(string url, string postData, string contentType = "application/json", string sessionId = "") -- Gitblit v1.9.1