修复bug
This commit is contained in:
@@ -35,6 +35,12 @@ namespace IRaCIS.Core.API
|
||||
Directory.CreateDirectory(systemNoticePath);
|
||||
}
|
||||
|
||||
|
||||
if (!Directory.Exists(comonPathPath))
|
||||
{
|
||||
Directory.CreateDirectory(comonPathPath);
|
||||
}
|
||||
|
||||
app.UseStaticFiles(new StaticFileOptions
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(uploadPath),
|
||||
@@ -54,6 +60,12 @@ namespace IRaCIS.Core.API
|
||||
RequestPath = $"/{StaticData.SystemNoticeFolder}"
|
||||
});
|
||||
|
||||
|
||||
app.UseStaticFiles(new StaticFileOptions
|
||||
{
|
||||
FileProvider = new PhysicalFileProvider(comonPathPath),
|
||||
RequestPath = $"/{StaticData.CommonFileFolder}"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user