wanggang 1 year ago
parent
commit
513f0274bb
  1. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Controllers/HomeController.cs

4
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,7 +19,7 @@ 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<string> Test(int seconds)

Loading…
Cancel
Save