| | |
| | | /// <param name="tag">描述信息</param> |
| | | /// <param name="url">请求地址(可以根据地址过滤该数据)</param> |
| | | /// <param name="content">信息内容</param> |
| | | public static void WriteLine(string tag,string url,string content) |
| | | public static void WriteLine(string tag, string url, string content) |
| | | { |
| | | return; |
| | | #if DEBUG |
| | | if (url == "") |
| | | { |
| | | return; |
| | | } |
| | | if (!string.IsNullOrEmpty(content)) |
| | | { |
| | | if (content.StartsWith("{") && content.EndsWith("}")) |
| | | { |
| | | //完全是为了打印好看一点,没特殊意义; |
| | | content = Newtonsoft.Json.JsonConvert.DeserializeObject(content)?.ToString(); |
| | | } |
| | | } |
| | | string text = tag + "======" + url + "\r\n" + content; |
| | | Console.WriteLine(text); |
| | | #endif |