From 53171273a4cd9049d532f031f389364982d219d7 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期五, 12 七月 2024 15:18:24 +0800 Subject: [PATCH] 更新实体 --- Tiger.Api/Controllers/Base/BaseController.cs | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/Tiger.Api/Controllers/Base/BaseController.cs b/Tiger.Api/Controllers/Base/BaseController.cs index 0826d82..e8978f6 100644 --- a/Tiger.Api/Controllers/Base/BaseController.cs +++ b/Tiger.Api/Controllers/Base/BaseController.cs @@ -532,6 +532,24 @@ } #endregion + #region 鍏堝垹闄ゅ悗鏂板 + [HttpPost] + public async Task<IActionResult> AddAfterDeleteAsync([FromBody] ApiAction action) + { + ApiAction response; + try + { + response = action.GetResponse(await Biz.Base.AddAfterDeleteAsync(action.GetDataEntity())); + } + catch (System.Exception ex) + { + response = action.GetResponse().CatchExceptionWithLog(ex); + } + return Ok(response); + } + + #endregion + #region 鏂囦欢涓婁紶 /// <summary> /// 鏂囦欢涓婁紶 @@ -544,7 +562,7 @@ if (file == null || file.Length == 0) return BadRequest("No file uploaded."); - var path = Path.Combine(@"D:\nginx-1.26.0\html", "upload", file.FileName); + var path = Path.Combine($@"{BizConfig.Configuration["UploadAddress"]}", "upload", file.FileName); using (var stream = new FileStream(path, FileMode.Create)) { -- Gitblit v1.9.3