diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/Authentication/AuthService.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/Authentication/AuthService.cs index b1a91b9f..60c8fc75 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/Authentication/AuthService.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/Authentication/AuthService.cs @@ -66,7 +66,7 @@ namespace Yi.Framework.Rbac.Application.Services.Authentication { (var openId, var name) = await GetOpenIdAndNameAsync(scheme); var userId = CurrentUser.Id; - var authEntityAny = await _repository.AnyAsync(x => x.OpenId == openId && x.AuthType == scheme); + var authEntityAny = await _repository.IsAnyAsync(x => x.OpenId == openId && x.AuthType == scheme); if (authEntityAny) { throw new UserFriendlyException("绑定失败,该第三方账号已被注册");