修复bug
parent
864a327fbb
commit
64ec8264f5
|
@ -35,6 +35,12 @@ namespace IRaCIS.Core.API
|
||||||
Directory.CreateDirectory(systemNoticePath);
|
Directory.CreateDirectory(systemNoticePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!Directory.Exists(comonPathPath))
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(comonPathPath);
|
||||||
|
}
|
||||||
|
|
||||||
app.UseStaticFiles(new StaticFileOptions
|
app.UseStaticFiles(new StaticFileOptions
|
||||||
{
|
{
|
||||||
FileProvider = new PhysicalFileProvider(uploadPath),
|
FileProvider = new PhysicalFileProvider(uploadPath),
|
||||||
|
@ -54,6 +60,12 @@ namespace IRaCIS.Core.API
|
||||||
RequestPath = $"/{StaticData.SystemNoticeFolder}"
|
RequestPath = $"/{StaticData.SystemNoticeFolder}"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
app.UseStaticFiles(new StaticFileOptions
|
||||||
|
{
|
||||||
|
FileProvider = new PhysicalFileProvider(comonPathPath),
|
||||||
|
RequestPath = $"/{StaticData.CommonFileFolder}"
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||||
{
|
{
|
||||||
public static class DbContextExt
|
public static class DbContextExt
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取变化的实体信息
|
/// 获取变化的实体信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -38,6 +39,8 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取变化的实体信息
|
/// 获取变化的实体信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue