From 3b5fe48dd15ee18bfbae8121dc643fe54dc77d44 Mon Sep 17 00:00:00 2001 From: yinqiang Date: Wed, 12 Jul 2023 14:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=97=A5=E5=BF=97=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gdsi/Helper/LogHelper.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Gdsi/Helper/LogHelper.cs b/Gdsi/Helper/LogHelper.cs index 25efe6e..4c1084e 100644 --- a/Gdsi/Helper/LogHelper.cs +++ b/Gdsi/Helper/LogHelper.cs @@ -20,13 +20,13 @@ namespace Gdsi.Helper /// 调用开始时间 public static void doJsonRequestLog(string method, string req, string resp, DateTime stime) { - string path = "D:\\FangDing\\FountainLog\\HisZY\\" + "Xml"; + string path = "D:\\FangDing\\FountainLog\\HisZY\\" + "Josn"; try { - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } + //if (!Directory.Exists(path)) + //{ + // Directory.CreateDirectory(path); + //} FileStream fs = new FileStream(path + "\\" + DateTime.Today.ToString("yyyyMMddHHmmss").Substring(0, 8).ToString() + ".txt", FileMode.Append, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.WriteLine("--------------------------------\r\n"); @@ -73,10 +73,10 @@ namespace Gdsi.Helper string path = "D:\\FangDing\\FountainLog\\HisZY\\" + "Error"; try { - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } + //if (!Directory.Exists(path)) + //{ + // Directory.CreateDirectory(path); + //} FileStream fs = new FileStream(path + "\\" + DateTime.Today.ToString("yyyyMMddHHmmss").Substring(0, 8).ToString() + ".txt", FileMode.Append, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.WriteLine("--------------------------------\r\n");