From 513f0274bb1cd180848cb1b1da5f098b75b81f26 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 30 Aug 2023 10:03:05 +0800 Subject: [PATCH] up --- .../Controllers/HomeController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"; } }