本地上传文件访问路径该从数据库配置文件中读取

This commit is contained in:
不做码农
2022-04-10 10:24:17 +08:00
parent 3906b7b44c
commit 867ae34dd8
4 changed files with 9 additions and 5 deletions

View File

@@ -105,7 +105,7 @@ namespace ZR.Admin.WebApi.Controllers
throw new CustomException("请求参数错误");
}
//从 Dto 映射到 实体
var model = parm.Adapt<SysConfig>().ToCreate();
var model = parm.Adapt<SysConfig>().ToCreate(HttpContext);
return SUCCESS(_SysConfigService.Insert(model, it => new
{