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 57e73bae..17a5f3b0 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 @@ -164,15 +164,15 @@ namespace Yi.Framework.Rbac.Application.Services /// 验证电话号码 /// /// - private async Task ValidationPhone(string str_handset) + private async Task ValidationPhone(string phone) { - var res = Regex.IsMatch(str_handset, @"^\d{11}$"); + var res = Regex.IsMatch(phone, @"^\d{11}$"); if (res == false) { throw new UserFriendlyException("手机号码格式错误!请检查"); } - if (await _userRepository.IsAnyAsync(x => x.Phone.ToString() == str_handset)) + if (await _userRepository.IsAnyAsync(x => x.Phone.ToString() == phone)) { throw new UserFriendlyException("该手机号已被注册!"); } @@ -225,7 +225,7 @@ namespace Yi.Framework.Rbac.Application.Services var uuid = Guid.NewGuid(); await _aliyunManger.SendSmsAsync(input.Phone, code); - await _phoneCache.SetAsync(new CaptchaPhoneCacheKey(ValidationPhoneTypeEnum.RetrievePassword, input.Phone), + await _phoneCache.SetAsync(new CaptchaPhoneCacheKey(validationPhoneType, input.Phone), new CaptchaPhoneCacheItem(code), new DistributedCacheEntryOptions { SlidingExpiration = TimeSpan.FromMinutes(10) }); return new diff --git a/Yi.Bbs.Vue3/.env.development b/Yi.Bbs.Vue3/.env.development index 3adabc35..412e0198 100644 --- a/Yi.Bbs.Vue3/.env.development +++ b/Yi.Bbs.Vue3/.env.development @@ -10,4 +10,4 @@ VITE_APP_BASE_WS = '/dev-ws' VITE_APP_BASE_URL_WS="http://localhost:19001/hub" # 是否开启ICP备案模式 -VITE_APP_ICP = true \ No newline at end of file +VITE_APP_ICP = false \ No newline at end of file diff --git a/Yi.Bbs.Vue3/.env.production b/Yi.Bbs.Vue3/.env.production index e7174e00..a5f4a621 100644 --- a/Yi.Bbs.Vue3/.env.production +++ b/Yi.Bbs.Vue3/.env.production @@ -9,4 +9,4 @@ VITE_APP_BASE_WS = '/prod-ws' VITE_APP_BASE_URL_WS="http://ccnetcore.com:19001/hub" # 是否开启ICP备案模式 -VITE_APP_ICP = true \ No newline at end of file +VITE_APP_ICP = false \ No newline at end of file diff --git a/Yi.Bbs.Vue3/index.html b/Yi.Bbs.Vue3/index.html index da02cce0..6915b049 100644 --- a/Yi.Bbs.Vue3/index.html +++ b/Yi.Bbs.Vue3/index.html @@ -4,9 +4,9 @@ - + .Net意社区 - 个人成果展示 +