From e9b3b012f9ff4cdb23d704bf0082dfd5502f6e1a Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Wed, 3 Sep 2025 15:21:03 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9minio=20=E7=89=88?=
=?UTF-8?q?=E6=9C=AC=E6=B5=8B=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRC.Core.SCP/IRC.Core.SCP.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/IRC.Core.SCP/IRC.Core.SCP.csproj b/IRC.Core.SCP/IRC.Core.SCP.csproj
index 748d93eb1..9b9ce0998 100644
--- a/IRC.Core.SCP/IRC.Core.SCP.csproj
+++ b/IRC.Core.SCP/IRC.Core.SCP.csproj
@@ -19,7 +19,7 @@
-
+
true
From 5673fcad5f624f0227daf88e5798c3e22611f3b2 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Wed, 3 Sep 2025 15:30:48 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96?=
=?UTF-8?q?=E8=AF=B7=E6=B1=82url=E6=B5=8B=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Infra.EFCore/AuthUser/UserInfo.cs | 20 +++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/IRaCIS.Core.Infra.EFCore/AuthUser/UserInfo.cs b/IRaCIS.Core.Infra.EFCore/AuthUser/UserInfo.cs
index fc619df85..e2f4ac95e 100644
--- a/IRaCIS.Core.Infra.EFCore/AuthUser/UserInfo.cs
+++ b/IRaCIS.Core.Infra.EFCore/AuthUser/UserInfo.cs
@@ -284,20 +284,28 @@ namespace IRaCIS.Core.Domain.Share
{
var url = _accessor?.HttpContext?.Request?.Path.ToString();
- var list = url.Split('/').Where(t => !string.IsNullOrWhiteSpace(t)).ToList();
-
- if (url.Contains("Inspection", StringComparison.OrdinalIgnoreCase))
+ if (url.IsNotNullOrEmpty())
{
- list.RemoveAt(0);
+ var list = url.Split('/').Where(t => !string.IsNullOrWhiteSpace(t)).ToList();
- return string.Join('/', list.Take(2));
+ if (url.Contains("Inspection", StringComparison.OrdinalIgnoreCase))
+ {
+ list.RemoveAt(0);
+
+ return string.Join('/', list.Take(2));
+ }
+ else
+ {
+ return string.Join('/', list.Take(2));
+ }
}
else
{
- return string.Join('/', list.Take(2));
+ return string.Empty;
}
+
}
}