From 7997e8c408aea1c6fea06195e1970648a1991ebf Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 26 Nov 2024 15:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=A4=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E7=94=9F=E6=88=90token=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/Controllers/ExtraController.cs | 2 +- .../Service/SiteSurvey/TrialSiteSurveyService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.API/Controllers/ExtraController.cs b/IRaCIS.Core.API/Controllers/ExtraController.cs index 39c25fc56..d6fc51f50 100644 --- a/IRaCIS.Core.API/Controllers/ExtraController.cs +++ b/IRaCIS.Core.API/Controllers/ExtraController.cs @@ -311,7 +311,7 @@ namespace IRaCIS.Api.Controllers { var token = _tokenService.GetToken(IRaCISClaims.Create(new UserBasicInfo() { - Id = Guid.Empty, + Id = Guid.NewGuid(), IsReviewer = false, IsAdmin = false, RealName = "Share001", diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index 29e1bf50f..c7a372217 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -234,7 +234,7 @@ namespace IRaCIS.Core.Application.Contracts result.ReviewStatus = info.ReviewStatus; } - result.Token = _tokenService.GetToken(IRaCISClaims.Create(new UserBasicInfo())); + result.Token = _tokenService.GetToken(IRaCISClaims.Create(new UserBasicInfo() { Id= Guid.NewGuid() })); } }