From b73be4c097b5e12c9534fbefd8df54b404c05cb0 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 25 二月 2026 08:45:15 +0800
Subject: [PATCH] “对开单位”改为不需要必填;执行时间不要“秒”

---
 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