From 00a551f7847bc5c2bc4bd66c17ea8838204870f1 Mon Sep 17 00:00:00 2001 From: Hogen Date: Fri, 4 Oct 2024 13:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COMCMS.API/COMCMS.API.csproj | 6 +++--- COMCMS.Common/COMCMS.Common.csproj | 2 +- .../Areas/AdminCP/Controllers/IndexController.cs | 2 +- COMCMS.Web/COMCMS.Web.csproj | 14 +++++++------- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/COMCMS.API/COMCMS.API.csproj b/COMCMS.API/COMCMS.API.csproj index fba109e..e1d2cb8 100644 --- a/COMCMS.API/COMCMS.API.csproj +++ b/COMCMS.API/COMCMS.API.csproj @@ -5,9 +5,9 @@ - - - + + + diff --git a/COMCMS.Common/COMCMS.Common.csproj b/COMCMS.Common/COMCMS.Common.csproj index 689ffb4..47ee252 100644 --- a/COMCMS.Common/COMCMS.Common.csproj +++ b/COMCMS.Common/COMCMS.Common.csproj @@ -6,7 +6,7 @@ - + diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/IndexController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/IndexController.cs index 93f05d1..9bc08f2 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/IndexController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/IndexController.cs @@ -56,7 +56,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers #region 后台主界面 public IActionResult Main() { - string remoteip = Request.HttpContext.Connection.RemoteIpAddress.ToString(); + string remoteip = Utils.GetIP(); string host = Request.HttpContext.Request.Host.Host; string port = Request.HttpContext.Connection.RemotePort.ToString(); diff --git a/COMCMS.Web/COMCMS.Web.csproj b/COMCMS.Web/COMCMS.Web.csproj index 0e2fe70..fc7adb0 100644 --- a/COMCMS.Web/COMCMS.Web.csproj +++ b/COMCMS.Web/COMCMS.Web.csproj @@ -6,23 +6,23 @@ - + - - + + - - + + - - + +