From a7a794c7094c0b27cd7235a7c68efe24df3754d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= <454313500@qq.com> Date: Thu, 7 Mar 2024 11:32:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E4=B8=8E=E6=95=88=E9=AA=8C=E6=8B=BC=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Extensions/HttpContextExtensions.cs | 2 +- .../Services/Forum/ArticleService.cs | 2 +- .../Services/Forum/DiscussService.cs | 4 ++-- .../Managers/IntegralManager.cs | 4 ++-- .../Services/AccountService.cs | 14 +++++++------- .../Managers/AccountManager.cs | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Yi.Abp.Net8/framework/Yi.Framework.Core/Extensions/HttpContextExtensions.cs b/Yi.Abp.Net8/framework/Yi.Framework.Core/Extensions/HttpContextExtensions.cs index e83cdf8c..d84b475a 100644 --- a/Yi.Abp.Net8/framework/Yi.Framework.Core/Extensions/HttpContextExtensions.cs +++ b/Yi.Abp.Net8/framework/Yi.Framework.Core/Extensions/HttpContextExtensions.cs @@ -75,7 +75,7 @@ namespace Yi.Framework.Core.Extensions result = result.Replace("::ffff:", "127.0.0.1"); - //Ip规则效验 + //Ip规则校验 var regResult = Regex.IsMatch(result, @"^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$"); result = regResult ? result : "127.0.0.1"; diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/ArticleService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/ArticleService.cs index 34be565a..d46a0681 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/ArticleService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/ArticleService.cs @@ -178,7 +178,7 @@ namespace Yi.Framework.Bbs.Application.Services.Forum /// - /// 效验创建权限,userId为主题创建者 + /// 校验创建权限,userId为主题创建者 /// /// /// diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/DiscussService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/DiscussService.cs index 3dfac9d8..e2717d93 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/DiscussService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/DiscussService.cs @@ -27,7 +27,7 @@ using Yi.Framework.SqlSugarCore.Abstractions; namespace Yi.Framework.Bbs.Application.Services.Forum { /// - /// Discuss应用服务实现,用于参数效验、领域服务业务组合、日志记录、事务处理、账户信息 + /// Discuss应用服务实现,用于参数校验、领域服务业务组合、日志记录、事务处理、账户信息 /// public class DiscussService : YiCrudAppService, IDiscussService @@ -221,7 +221,7 @@ namespace Yi.Framework.Bbs.Application.Services.Forum } /// - /// 效验主题查询权限 + /// 校验主题查询权限 /// /// /// diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Domain/Managers/IntegralManager.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Domain/Managers/IntegralManager.cs index c209bc58..519f2a92 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Domain/Managers/IntegralManager.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Domain/Managers/IntegralManager.cs @@ -43,7 +43,7 @@ namespace Yi.Framework.Bbs.Domain.Managers var sigInLast = await _signInRepository._DbQueryable.Where(x => x.CreatorId == userId).OrderByDescending(x => x.CreationTime).FirstAsync(); - //verify 效验是否允许签到了 + //verify 校验是否允许签到了 if (sigInLast is not null) { VerifySignInTime(sigInLast.CreationTime); @@ -65,7 +65,7 @@ namespace Yi.Framework.Bbs.Domain.Managers } /// - /// 效验签到时间 + /// 校验签到时间 /// /// /// diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs index 1f10b92c..c2344166 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/AccountService.cs @@ -64,14 +64,14 @@ namespace Yi.Framework.Rbac.Application.Services private IAccountManager _accountManager; private ISqlSugarRepository _menuRepository; /// - /// 效验图片登录验证码,无需和账号绑定 + /// 校验图片登录验证码,无需和账号绑定 /// [AllowAnonymous] private void ValidationImageCaptcha(LoginInputVo input) { if (_rbacOptions.EnableCaptcha) { - //登录不想要验证码 ,可不效验 + //登录不想要验证码 ,可不校验 if (!_captcha.Validate(input.Uuid, input.Code)) { throw new UserFriendlyException("验证码错误"); @@ -94,11 +94,11 @@ namespace Yi.Framework.Rbac.Application.Services throw new UserFriendlyException("请输入合理数据!"); } - //效验验证码 + //校验验证码 ValidationImageCaptcha(input); UserEntity user = new(); - //效验 + //校验 await _accountManager.LoginValidationAsync(input.UserName, input.Password, x => user = x); //获取token @@ -186,7 +186,7 @@ namespace Yi.Framework.Rbac.Application.Services } /// - /// 效验电话验证码,需要与电话号码绑定 + /// 校验电话验证码,需要与电话号码绑定 /// private async Task ValidationPhoneCaptchaAsync(RegisterDto input) { @@ -240,10 +240,10 @@ namespace Yi.Framework.Rbac.Application.Services throw new UserFriendlyException("密码需大于等于6位!"); } - //效验用户名 + //校验用户名 ValidateUserName(input); - //效验验证码,根据电话号码获取 value,比对验证码已经uuid + //校验验证码,根据电话号码获取 value,比对验证码已经uuid await ValidationPhoneCaptchaAsync(input); diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/AccountManager.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/AccountManager.cs index dfe4ba03..57f3d619 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/AccountManager.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain/Managers/AccountManager.cs @@ -139,7 +139,7 @@ namespace Yi.Framework.Rbac.Domain.Managers } /// - /// 登录效验 + /// 登录校验 /// /// /// @@ -176,7 +176,7 @@ namespace Yi.Framework.Rbac.Domain.Managers { userAction.Invoke(user); } - //这里为了兼容解决数据库开启了大小写不敏感问题,还要将用户名进行二次效验 + //这里为了兼容解决数据库开启了大小写不敏感问题,还要将用户名进行二次校验 if (user != null&&user.UserName==userName) { return true;