From 51aebb52e3f964ad5d0e96c6b92ae8e455b24ceb Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 10 四月 2026 13:08:17 +0800
Subject: [PATCH] 需要修改的,   不选板材,直接按照板材规格扣减库存。  发版套数不填的话就是1.  扣减库存的量就是  数量*发版套数 20260410  试卷 6年级添加 答题卡 选项  完成

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