JLChen
2020-12-06 33656fa9abd15ed00a390024b439568d2713ca1a
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs
@@ -309,6 +309,7 @@
                {
                    room.SaveRoomData();
                }
            };
            //上传图片到云端
@@ -338,12 +339,12 @@
                {
                    try
                    {
                        var newImageName = mRoom.name.Trim() +  ".png";
                        var newImageName = mRoom.roomName.Trim() +  ".png";
                        var uploadImageObj = new UploadImageObj()
                        {
                            prefix = "ONR",
                            fileName = newImageName,
                            uid = mRoom.sid,
                            uid = mRoom.uid,
                            content = imageBytes,
                        };
@@ -355,7 +356,7 @@
                            {
                                Utlis.WriteLine("上传成功:" + imageUrl);
                                //1.2如果是自定义图片删除之前的
                                if (!imageView.ImagePath.Contains("Classification/Room/Roombg"))
                                if (!string.IsNullOrEmpty(imageView.ImagePath) && !imageView.ImagePath.Contains("Classification/Room/Roombg"))
                                {
                                    Utlis.WriteLine("删除: " + imageView.ImagePath);
                                    System.IO.File.Delete(imageView.ImagePath);