Scripts目录不再必要存在,并移除 livePage.js; 调整项目结构
This commit is contained in:
@@ -53,7 +53,7 @@ namespace BarrageGrab
|
||||
public static string GetJsFile(string fileName)
|
||||
{
|
||||
var path = Path.Combine(AppContext.BaseDirectory, "Scripts", "engine", fileName);
|
||||
if (!File.Exists(path)) throw new FileNotFoundException("不存在的文件", path);
|
||||
if (!File.Exists(path)) return null;
|
||||
return File.ReadAllText(path, Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user