From bb6ad792b598927a5459a5fb6f6c27fb1aa9e94e Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期四, 17 十二月 2020 14:06:36 +0800
Subject: [PATCH] 20201217-1

---
 HDL_ON/Common/FileUtlis.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/Common/FileUtlis.cs b/HDL_ON/Common/FileUtlis.cs
index b78016d..62136bd 100644
--- a/HDL_ON/Common/FileUtlis.cs
+++ b/HDL_ON/Common/FileUtlis.cs
@@ -30,7 +30,7 @@
             {
                 if (string.IsNullOrEmpty(accountPath) || !accountPath.Contains(UserInfo.Current.ID))
                 {
-                    accountPath = Path.Combine(RootPath, UserInfo.Current.CurReginID);
+                    accountPath = Path.Combine(RootPath, UserInfo.Current.ID);
                     if (!Directory.Exists(accountPath))
                     {
                         Directory.CreateDirectory(accountPath);
@@ -47,9 +47,9 @@
         {
             get
             {
-                if (string.IsNullOrEmpty(regionPath) || !regionPath.Contains(UserInfo.Current.CurReginID ))
+                if (string.IsNullOrEmpty(regionPath) || !regionPath.Contains(DB_ResidenceData.Instance.CurrentRegion.RegionID ))
                 {
-                    regionPath = Path.Combine(AccountPath, UserInfo.Current.CurReginID);
+                    regionPath = Path.Combine(AccountPath, DB_ResidenceData.Instance.CurrentRegion.RegionID);
                     if (!Directory.Exists(regionPath))
                     {
                         Directory.CreateDirectory(regionPath);
@@ -59,7 +59,7 @@
             }
         }
 
-
+        //public List<>
 
 
         /// <summary>
@@ -119,7 +119,7 @@
                 fs = new FileStream(Path.Combine(RegionPath, fileName), FileMode.Create, FileAccess.Write);
                 fs.Write(bytes, 0, bytes.Length);
                 fs.Flush();
-                MainPage.Log("SaveFile:" + fileName);
+                MainPage.Log($"SaveFile:{fileName}");//Path:{RegionPath}
                 return true;
             }
             catch (Exception ex)

--
Gitblit v1.8.0