CrazyIter_Bin 5 月之前
父节点
当前提交
db3b420e56
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      TEAMModelOS.Extension/IES.Exam/IES.ExamServer/Program.cs

+ 5 - 0
TEAMModelOS.Extension/IES.Exam/IES.ExamServer/Program.cs

@@ -104,6 +104,11 @@ namespace IES.ExamServer
             contentTypeProvider.Mappings[".mp3"] = "audio/mpeg";
             contentTypeProvider.Mappings[".json"] = "application/json";
             contentTypeProvider.Mappings[".pdf"] = "application/pdf";
+            string packagePath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "package");
+            if (!Directory.Exists(packagePath))
+            {
+                Directory.CreateDirectory(packagePath);
+            }
             app.UseStaticFiles(new StaticFileOptions
             {
                 FileProvider = new PhysicalFileProvider(