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 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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