From f717f2c9c067b485f43743511abff0bcf71bfa9b Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 11 十二月 2020 10:52:27 +0800
Subject: [PATCH] 2020-12-11 1.修复个人中心第二次上传失败闪退问题。

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs |    4 ++--
 .vs/HDL_APP_Project/xs/UserPrefs.xml                  |   29 +++++++++++------------------
 HDL-ON_iOS/AppDelegate.cs                             |    6 ++++++
 3 files changed, 19 insertions(+), 20 deletions(-)

diff --git a/.vs/HDL_APP_Project/xs/UserPrefs.xml b/.vs/HDL_APP_Project/xs/UserPrefs.xml
index 4cc64f7..fe11ff8 100644
--- a/.vs/HDL_APP_Project/xs/UserPrefs.xml
+++ b/.vs/HDL_APP_Project/xs/UserPrefs.xml
@@ -1,26 +1,19 @@
-锘�<Properties StartupConfiguration="{09712674-2A38-407B-B1E2-560B2C352F9A}|Default">
-  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.08FD445C-3EE8-4ED2-BF28-B42ADD0DA92C" />
-  <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs">
+锘�<Properties StartupConfiguration="{D998E133-F0DD-4760-BE3C-461632F54DA4}|Default">
+  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.00008030-00014C392121802E" />
+  <MonoDevelop.Ide.Workbench ActiveDocument="HDL-ON_iOS/Info.plist">
     <Files>
-      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs" Line="1" Column="1" />
+      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs" Line="41" Column="1" />
+      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs" Line="208" Column="40" />
+      <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs" Line="297" Column="14" />
+      <File FileName="HDL-ON_iOS/AppDelegate.cs" Line="220" Column="54" />
+      <File FileName="HDL-ON_iOS/Info.plist" />
     </Files>
     <Pads>
       <Pad Id="ProjectPad">
         <State name="__root__">
           <Node name="HDL_APP_Project" expanded="True">
-            <Node name="HDL_ON" expanded="True">
-              <Node name="UI" expanded="True">
-                <Node name="UI0-Public" expanded="True" />
-                <Node name="UI1-Login" expanded="True" />
-                <Node name="UI2" expanded="True">
-                  <Node name="4-PersonalCenter" expanded="True">
-                    <Node name="AccountBindInfo" expanded="True" />
-                    <Node name="ResetAccountPassword" expanded="True">
-                      <Node name="ResetPasswordVerificationCodePage.cs" selected="True" />
-                    </Node>
-                  </Node>
-                </Node>
-              </Node>
+            <Node name="HDL-ON_iOS" expanded="True">
+              <Node name="Info.plist" selected="True" />
             </Node>
           </Node>
         </State>
@@ -33,7 +26,7 @@
     <String>Shared.Droid.TouchID/Shared.Droid.TouchID.csproj</String>
     <String>Shared.IOS/Shared.IOS.csproj</String>
   </DisabledProjects>
-  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
+  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" />
   <MonoDevelop.Ide.ItemProperties.HDL-ON__Android PreferredExecutionTarget="Android.4b65c4650918" />
   <MonoDevelop.Ide.DebuggingService.Breakpoints>
     <BreakpointStore />
diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index c1567e0..4ddbb7d 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -211,8 +211,14 @@
         {
 
             //Shared.Application.FontSize = 12;
+
+            //鍙栨秷EditText榛樿瀵嗙爜杈撳叆鏂瑰紡
             Shared.Application.IsEditTextContentTypePassword = false;
+            //榛樿浣跨敤鑻规柟瀛椾綋
             Shared.Application.IsUsePingFang = true;
+            ////榛樿绂佹闊充箰鏈嶅姟
+            //Shared.Application.IsMusicEnable = false;
+
             Window = new UIWindow(UIScreen.MainScreen.Bounds);
             rootViewController = new UINavigationController(new ViewController()) { NavigationBarHidden = true };
             Window.RootViewController = rootViewController;
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index ffbbe89..6437949 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -272,14 +272,14 @@
                             {
                                 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);
                                     System.IO.File.Delete(imageView.ImagePath);
                                 }
                                 //閲嶅懡鍚嶄繚瀛�
                                 FileUtils.WriteFileByBytes(imageUrl, imageBytes);
-                                imageView.ImagePath = null;
+                                imageView.ImagePath = imageUrl;
                                 imageView.ImageBytes = imageBytes;
                                 //涓婁紶鎴愬姛
                                 Utlis.ShowTip(Language.StringByID(StringId.UploadSuccessfully));

--
Gitblit v1.8.0