From 9d05329170a910110bfa6831bdfcfd8d74901178 Mon Sep 17 00:00:00 2001 From: hehaibing-1996 Date: Thu, 27 Feb 2025 11:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=B8=8B=E8=BD=BD=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=8A=9F=E8=83=BD=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PDA/PDA/manifest.json | 4 +++- PDA/PDA/unpackage/dist/cache/.vite/deps/_metadata.json | 6 +++--- WCS.WebApi/Controllers/FileDownLoadController.cs | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/PDA/PDA/manifest.json b/PDA/PDA/manifest.json index 4b120e7..c782b18 100644 --- a/PDA/PDA/manifest.json +++ b/PDA/PDA/manifest.json @@ -43,7 +43,9 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "dSYMs" : false + }, /* SDK配置 */ "sdkConfigs" : {}, "icons" : { diff --git a/PDA/PDA/unpackage/dist/cache/.vite/deps/_metadata.json b/PDA/PDA/unpackage/dist/cache/.vite/deps/_metadata.json index 4b80caa..3f13c63 100644 --- a/PDA/PDA/unpackage/dist/cache/.vite/deps/_metadata.json +++ b/PDA/PDA/unpackage/dist/cache/.vite/deps/_metadata.json @@ -1,8 +1,8 @@ { - "hash": "29c858eb", - "configHash": "a028522a", + "hash": "e52075f4", + "configHash": "469f15e9", "lockfileHash": "418b0517", - "browserHash": "316d81cf", + "browserHash": "dfed43e0", "optimized": {}, "chunks": {} } \ No newline at end of file diff --git a/WCS.WebApi/Controllers/FileDownLoadController.cs b/WCS.WebApi/Controllers/FileDownLoadController.cs index 9bbfcb8..b53c712 100644 --- a/WCS.WebApi/Controllers/FileDownLoadController.cs +++ b/WCS.WebApi/Controllers/FileDownLoadController.cs @@ -56,7 +56,7 @@ namespace WCS.WebApi.Controllers } // 定义保存路径 - var savePath = Path.Combine(Directory.GetCurrentDirectory(), $"Files"); + var savePath = Path.Combine(AppContext.BaseDirectory, $"Files"); // 确保文件夹存在 if (!Directory.Exists(savePath)) { @@ -102,7 +102,7 @@ namespace WCS.WebApi.Controllers public IActionResult downloadApp(string fileName) { // 这里是文件的物理路径,你需要根据实际情况提供 - var filePath = Path.Combine(Directory.GetCurrentDirectory(), $"Files/{fileName}"); + var filePath = Path.Combine(AppContext.BaseDirectory, $"Files/{fileName}"); // 检查文件是否存在 if (!System.IO.File.Exists(filePath)) {