diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Controllers/HomeController.cs b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Controllers/HomeController.cs index 0f6d0f2f..95831263 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Controllers/HomeController.cs +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Controllers/HomeController.cs @@ -1,4 +1,4 @@ -using System; +using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SignalR; @@ -19,12 +19,12 @@ namespace Win.Sfs.SettleAccount.Controllers [ResponseCache(NoStore = true)] public ActionResult Index() { - return File("~/index.html", "text/html"); + return File(System.IO.File.ReadAllBytes(Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "index.html")), "text/html"); } public async Task Test(int seconds) { - await Task.Delay(seconds*1000).ConfigureAwait(false); + await Task.Delay(seconds * 1000).ConfigureAwait(false); return "ok"; } }