本地上传文件访问路径该从数据库配置文件中读取
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user