From 0e7bd5f5dd2ff45d10ea29d51ddc389233b4ae0f Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 10 Feb 2026 03:53:07 -0500 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=9E=90UserId=20=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E5=B1=82=E5=88=A4=E6=96=AD=EF=BC=8C=E4=B8=8D=E7=9F=A5=E9=81=93?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=85=B6=E4=BB=96=E5=95=A5=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E8=AF=AF=E8=B0=83=E7=94=A8=E8=AF=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/Controllers/ExtraController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.API/Controllers/ExtraController.cs b/IRaCIS.Core.API/Controllers/ExtraController.cs index 5859710db..66ef3bc6d 100644 --- a/IRaCIS.Core.API/Controllers/ExtraController.cs +++ b/IRaCIS.Core.API/Controllers/ExtraController.cs @@ -279,7 +279,7 @@ namespace IRaCIS.Api.Controllers var isExpire = _tokenService.IsTokenExpired(token); - if (!await _useRepository.AnyAsync(t => t.Id == Guid.Parse(userId) && t.EmailToken == token && t.IsFirstAdd) || isExpire) + if ( Guid.TryParse(userId,out _) == false || isExpire || !await _useRepository.AnyAsync(t => t.Id == Guid.Parse(userId) && t.EmailToken == token && t.IsFirstAdd) ) { decodeUrl = errorUrl + $"?lang={lang}&ErrorMessage={System.Web.HttpUtility.UrlEncode(I18n.T("UserRedirect_InitializationLinkExpire"))} "; }