From 5660d2e83b9745f676f1e2e77140ddbe9e891a9b Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 2 Feb 2024 15:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8C=BB=E7=94=9F=E8=87=AA?= =?UTF-8?q?=E5=B7=B1=E7=BC=96=E8=BE=91=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/SiteSurvey/TrialSiteSurveyService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index 5bedfb6b6..6403d929a 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -108,6 +108,14 @@ namespace IRaCIS.Core.Application.Contracts } else //验证码正确 并且 没有超时 { + var dockerInfo=await _repository.Where(t=>t.EMail==inDto.EmailOrPhone||t.Phone==inDto.EmailOrPhone).FirstOrDefaultAsync(); + + if (dockerInfo != null) + { + result.DoctorId = dockerInfo.Id; + result.ReviewStatus = dockerInfo.ReviewStatus; + } + result.Token = _tokenService.GetToken(IRaCISClaims.Create(new UserBasicInfo())); } }