Compare commits

...

2 Commits

Author SHA1 Message Date
hang a6e260dce1 签名文档bug
continuous-integration/drone/push Build is passing Details
2025-01-20 17:36:37 +08:00
hang 2e9a75279d 修改邮箱修改邮箱验证码错误
continuous-integration/drone/push Build is running Details
2025-01-20 17:35:25 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ namespace IRaCIS.Core.Application.Service
var verificationRecord = await _verificationCodeRepository
.FirstOrDefaultAsync(t => t.UserId == _userInfo.UserRoleId && t.Code == verificationCode && t.CodeType == 0);
.FirstOrDefaultAsync(t => t.UserId == _userInfo.IdentityUserId && t.Code == verificationCode && t.CodeType == 0);
//检查数据库是否存在该验证码
if (verificationRecord == null)

View File

@ -1094,7 +1094,7 @@ namespace IRaCIS.Core.Application
var list = await _trialRepository.Where(t => t.TrialStatusStr != StaticData.TrialState.TrialStopped)
.Where(t => t.TrialIdentityUserList.Any(t => t.IdentityUserId == _userInfo.IdentityUserId && t.TrialUserRoleList.Any(t => t.UserRole.UserTypeId == _userInfo.UserTypeId)))
.WhereIf(!_userInfo.IsAdmin, c => c.TrialDocumentList.Where(t => t.IsDeleted == false && t.NeedConfirmedUserTypeList.Any(t => t.NeedConfirmUserTypeId == _userInfo.UserTypeId) &&
!t.TrialDocConfirmedUserList.Any(t => t.ConfirmUserId == _userInfo.UserRoleId && t.ConfirmTime != null)).Count() > 0)
!t.TrialDocConfirmedUserList.Any(t => t.ConfirmUserId == _userInfo.IdentityUserId && t.ConfirmTime != null)).Count() > 0)
.Select(t => t.Id).ToListAsync();
return list;