From b03ae699c49cfca53d22772f0c2aec5210bc9758 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 02 四月 2026 08:50:35 +0800
Subject: [PATCH] 张薇按我这个界面比例画图 生产要求只填1行就够了,其他跟之前的一样 这个地方是增加或者删除不需要的后道

---
 CY_ECommercePlatform/CY.WebForm/cs/UploadCS.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/cs/UploadCS.cs b/CY_ECommercePlatform/CY.WebForm/cs/UploadCS.cs
index 073c941..90dad1a 100644
--- a/CY_ECommercePlatform/CY.WebForm/cs/UploadCS.cs
+++ b/CY_ECommercePlatform/CY.WebForm/cs/UploadCS.cs
@@ -155,13 +155,13 @@
                             //鍒犻櫎鍘熶笂浼犲浘鐗�
                             if (!string.IsNullOrEmpty(old_path) && File.Exists(HttpContext.Current.Server.MapPath("~" + old_path.Replace(WebDomain, ""))))
                             {
-                                //File.Delete(HttpContext.Current.Server.MapPath("~" + old_path.Replace(WebDomain, "")));
+                                File.Delete(HttpContext.Current.Server.MapPath("~" + old_path.Replace(WebDomain, "")));
                             }
-                            //淇濆瓨鏂囦欢
+                            //  淇濆瓨鏂囦欢
                             file.SaveAs(HttpContext.Current.Server.MapPath("~" + folder_path + filename));
                             System.Threading.Thread.Sleep(10);
 
-                            _UpFileResult.returnfilename.Add(WebDomain + folder_path + filename);
+                            _UpFileResult.returnfilename.Add(folder_path + filename);
                         }
                         else
                             _UpFileResult.returnerror.Add(string.Format("鏍煎紡涓嶅湪鍏佽鐨勮寖鍥村唴,鍙厑璁告牸寮忎负:{0}", UploadFileType));
@@ -169,9 +169,9 @@
                 }
 
             }
-            catch
+            catch(Exception ex)
             {
-                _UpFileResult.returnerror.Add("涓婁紶鏂囦欢鍑洪敊");
+                _UpFileResult.returnerror.Add(ex.Message + "涓婁紶鏂囦欢鍑洪敊");
             }
 
             return _UpFileResult;

--
Gitblit v1.9.1