From 0347d1332ee6490963fd2e0771f2cfcda7bcafe9 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 11 十二月 2020 16:40:10 +0800 Subject: [PATCH] 2020-12-11 1.修改图片上传和下载方法。 --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs index b60b3e9..b2afe4c 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs @@ -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); } //閲嶅懡鍚嶄繚瀛� - Common.FileUtlis.Files.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