From b5319368f384532dc25b2304479332bd58981d51 Mon Sep 17 00:00:00 2001 From: YL <YL@LAPTOP-SE03PLUR> Date: 星期五, 18 六月 2021 13:36:48 +0800 Subject: [PATCH] nothing --- WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs index 38726d4..0bb2bce 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs @@ -484,7 +484,8 @@ string HRemark = HttpContext.Current.Request.Params["HRemark"]; //澶囨敞 string HUserName = HttpContext.Current.Request.Params["HUserName"]; //鍒涘缓浜� HttpPostedFile files = HttpContext.Current.Request.Files["file"]; - string path = HttpContext.Current.Server.MapPath("~/Files/" + HBillNo); + string path = HttpContext.Current.Server.MapPath("~/../Files/" + HBillNo); + //string path = @"D:\\Files\\"+ HBillNo; dynamic dyResult = UpLoadFile(files, path, HBillNo, HRemark, HUserName); if (dyResult != null && dyResult.result == 1) { @@ -646,7 +647,7 @@ { ds = oCN.RunProcReturn("delete from MES_AccessoriesList where HItemID ='" + HItemID + "'", "MES_AccessoriesList"); - string fileurl = Path.Combine(HttpContext.Current.Server.MapPath("~/Files/" + HSourceBillNo), HFileName); + string fileurl = Path.Combine(HttpContext.Current.Server.MapPath("~/../Files/" + HSourceBillNo), HFileName); File.Delete(fileurl); //鍒犻櫎鎸囧畾鏂囦欢 objJsonResult.code = "1"; objJsonResult.count = 1; -- Gitblit v1.9.1