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

6
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<string> Test(int seconds)
{
await Task.Delay(seconds*1000).ConfigureAwait(false);
await Task.Delay(seconds * 1000).ConfigureAwait(false);
return "ok";
}
}

Loading…
Cancel
Save