Browse Source

StaticController:修正默认根目录的取值

dev
王厅 2 months ago
parent
commit
b95afbf38c
  1. 4
      Apewer/Web/StaticController.cs

4
Apewer/Web/StaticController.cs

@ -101,14 +101,14 @@ namespace Apewer.Web
if (System.IO.Directory.Exists(web)) if (System.IO.Directory.Exists(web))
{ {
_root = new Class<string>(web); _root = new Class<string>(web);
return www; return web;
} }
var @static = StorageUtility.CombinePath(app, "static"); var @static = StorageUtility.CombinePath(app, "static");
if (System.IO.Directory.Exists(@static)) if (System.IO.Directory.Exists(@static))
{ {
_root = new Class<string>(@static); _root = new Class<string>(@static);
return www; return @static;
} }
_root = new Class<string>(app); _root = new Class<string>(app);

Loading…
Cancel
Save