From 680d96f157e4609af3e7af6f8d01ee0bf3f55063 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 11 十二月 2020 21:11:04 +0800
Subject: [PATCH] 20201210

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index ffbbe89..b2afe4c 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -95,20 +95,20 @@
                 try
                 {
                     #region 淇濆瓨鏈湴鏁版嵁鑷虫枃浠跺す
-                    string oldRegionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID.ToString());
-                    //娓呯┖涔嬪墠鐨勪綇瀹呮枃浠�
-                    FileUtils.DeleteRegionFiles(oldRegionRootPath);
-                    var backuplist = FileUtils.ReadFiles();
-                    //绉诲姩鏂囦欢
-                    foreach (var fileName in backuplist)
-                    {
-                        System.IO.FileInfo fileInfo = new System.IO.FileInfo(FileUtils.RootPath + fileName);
-                        if (fileInfo.Exists)
-                        {
-                            fileInfo.MoveTo(oldRegionRootPath + fileName);
-                            MainPage.Log("move file : " + fileName);
-                        }
-                    }
+                    //string oldRegionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID.ToString());
+                    ////娓呯┖涔嬪墠鐨勪綇瀹呮枃浠�
+                    //FileUtils.DeleteRegionFiles(oldRegionRootPath);
+                    //var backuplist = FileUtils.ReadFiles();
+                    ////绉诲姩鏂囦欢
+                    //foreach (var fileName in backuplist)
+                    //{
+                    //    System.IO.FileInfo fileInfo = new System.IO.FileInfo(FileUtils.RootPath + fileName);
+                    //    if (fileInfo.Exists)
+                    //    {
+                    //        fileInfo.MoveTo(oldRegionRootPath + fileName);
+                    //        MainPage.Log("move file : " + fileName);
+                    //    }
+                    //}
                     #endregion
                 }
                 catch (Exception ex)
@@ -117,7 +117,7 @@
                 }
                 finally
                 {
-                    FileUtils.DeleteAllFile();
+                    //FileUtils.DeleteAllFile();
                     //2.娉ㄩ攢鎺ㄩ��
                     new HttpServerRequest().SignOutPush();
                     //3.璺宠浆鐧诲綍椤甸潰
@@ -270,16 +270,16 @@
                             //涓婁紶鎴愬姛
                             Application.RunOnMainThread(() =>
                             {
-                                Utlis.WriteLine("涓婁紶鎴愬姛锛�" + imageUrl);
+                                //Utlis.WriteLine("涓婁紶鎴愬姛锛�" + imageUrl);
                                 //1.2濡傛灉鏄嚜瀹氫箟鍥剧墖鍒犻櫎涔嬪墠鐨�
-                                if (!imageView.ImagePath.Contains("LoginIcon/2.png"))
+                                if (!string.IsNullOrEmpty(imageView.ImagePath) && !imageView.ImagePath.Contains("LoginIcon/2.png"))
                                 {
-                                    Utlis.WriteLine("鍒犻櫎: " + imageView.ImagePath);
+                                    //Utlis.WriteLine("鍒犻櫎: " + imageView.ImagePath);
                                     System.IO.File.Delete(imageView.ImagePath);
                                 }
                                 //閲嶅懡鍚嶄繚瀛�
-                                FileUtils.WriteFileByBytes(imageUrl, imageBytes);
-                                imageView.ImagePath = null;
+                                ImageUtlis.Current.WriteFileByBytes(imageUrl, imageBytes);
+                                imageView.ImagePath = imageUrl;
                                 imageView.ImageBytes = imageBytes;
                                 //涓婁紶鎴愬姛
                                 Utlis.ShowTip(Language.StringByID(StringId.UploadSuccessfully));

--
Gitblit v1.8.0