diff --git a/README.md b/README.md index 42b64b1..3f3c58f 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ cd Yi 启动成功后,浏览器会自动打开 Swagger 文档:`http://localhost:19001/swagger` -**默认管理员账号**:`cc` / `123456` +**默认管理员账号**:`admin` / `123456` > 💡 **提示**: > - 首次启动会自动创建数据库表(CodeFirst) @@ -559,7 +559,7 @@ A: 设置 `EnabledSaasMultiTenancy: true`,并在 Swagger 中使用 `__tenant` ## 📞 联系我们 - **官网**:[ccnetcore.com](https://ccnetcore.com) -- **演示地址**:[data.ccnetcore.com:2000](https://data.ccnetcore.com:2000)(账号:cc / 密码:123456) +- **演示地址**:[data.ccnetcore.com:2000](https://data.ccnetcore.com:2000)(账号:admin / 密码:123456) - **QQ 群**:981136525(官方五群) - **微信**:添加 `chengzilaoge520`(备注:拉群) diff --git a/Yi.Abp.Net8/client/Yi.Abp.Client.Console/Program.cs b/Yi.Abp.Net8/client/Yi.Abp.Client.Console/Program.cs index 31d28fb..7eccc7a 100644 --- a/Yi.Abp.Net8/client/Yi.Abp.Client.Console/Program.cs +++ b/Yi.Abp.Net8/client/Yi.Abp.Client.Console/Program.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Yi.Abp.Client.Console; using Yi.Framework.Rbac.Application.Contracts.IServices; @@ -20,7 +20,7 @@ try var data1 = await account.GetCaptchaImageAsync(); //登录 - var data2 = await account.PostLoginAsync(new Yi.Framework.Rbac.Application.Contracts.Dtos.Account.LoginInputVo { UserName = "cc", Password = "123456", Code = string.Empty, Uuid = string.Empty }); + var data2 = await account.PostLoginAsync(new Yi.Framework.Rbac.Application.Contracts.Dtos.Account.LoginInputVo { UserName = "admin", Password = "123456", Code = string.Empty, Uuid = string.Empty }); host.Run(); diff --git a/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiTokenAuthorizationFilter.cs b/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiTokenAuthorizationFilter.cs index f7235a6..911d4e5 100644 --- a/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiTokenAuthorizationFilter.cs +++ b/Yi.Abp.Net8/framework/Yi.Framework.BackgroundWorkers.Hangfire/YiTokenAuthorizationFilter.cs @@ -1,4 +1,4 @@ -using Hangfire.Dashboard; +using Hangfire.Dashboard; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.DependencyInjection; @@ -16,7 +16,7 @@ public sealed class YiTokenAuthorizationFilter : IDashboardAsyncAuthorizationFil private const string HtmlContentType = "text/html"; private readonly IServiceProvider _serviceProvider; - private string _requiredUsername = "cc"; + private string _requiredUsername = "admin"; private TimeSpan _tokenExpiration = TimeSpan.FromMinutes(10); /// diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain.Shared/Consts/UserConst.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain.Shared/Consts/UserConst.cs index 4405a3f..ba78c09 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain.Shared/Consts/UserConst.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain.Shared/Consts/UserConst.cs @@ -24,7 +24,7 @@ namespace Yi.Framework.Rbac.Domain.Shared.Consts public const string Phone_Repeat = "手机号已重复"; //子租户管理员 - public const string Admin = "cc"; + public const string Admin = "admin"; public const string AdminRolesCode = "admin"; public const string AdminPermissionCode = "*:*:*"; diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.SqlSugarCore/DataSeeds/UserDataSeed.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.SqlSugarCore/DataSeeds/UserDataSeed.cs index 7ad8788..f855541 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.SqlSugarCore/DataSeeds/UserDataSeed.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.SqlSugarCore/DataSeeds/UserDataSeed.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.Options; +using Microsoft.Extensions.Options; using Volo.Abp.Data; using Volo.Abp.DependencyInjection; using Yi.Framework.Rbac.Domain.Entities; @@ -25,18 +25,18 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds var entities = new List(); UserAggregateRoot user1 = new UserAggregateRoot() { - Name = "大橙子", - UserName = "cc", - Nick = "橙子", + Name = "超级管理员", + UserName = "admin", + Nick = "超级管理员", EncryPassword = new EncryPasswordValueObject(_options.AdminPassword), - Email = "454313500@qq.com", + Email = "admin@example.com", Phone = 13800000000, Sex = SexEnum.Male, - Address = "深圳", + Address = "成都", Age = 20, - Introduction = "还有谁?", + Introduction = "超级管理员", OrderNum = 999, - Remark = "描述是什么呢?", + Remark = "超级管理员", State = true }; user1.BuildPassword(); @@ -45,18 +45,18 @@ namespace Yi.Framework.Rbac.SqlSugarCore.DataSeeds UserAggregateRoot user2 = new UserAggregateRoot() { - Name = "大测试", + Name = "测试", UserName = "test", Nick = "测试", - EncryPassword=new EncryPasswordValueObject("123456"), - Email = "454313500@qq.com", + EncryPassword=new EncryPasswordValueObject(_options.AdminPassword), + Email = "test@example.com", Phone = 15900000000, Sex = SexEnum.Woman, - Address = "深圳", + Address = "成都", Age = 18, - Introduction = "还有我!", + Introduction = "测试", OrderNum = 1, - Remark = "我没有描述!", + Remark = "测试", State = true }; diff --git a/Yi.Abp.Net8/src/Yi.Abp.Application/Services/TestService.cs b/Yi.Abp.Net8/src/Yi.Abp.Application/Services/TestService.cs index 4ff3572..b21fab3 100644 --- a/Yi.Abp.Net8/src/Yi.Abp.Application/Services/TestService.cs +++ b/Yi.Abp.Net8/src/Yi.Abp.Application/Services/TestService.cs @@ -276,7 +276,7 @@ namespace Yi.Abp.Application.Services try { await DataSeeder.SeedAsync(); - return "种子数据初始化成功!默认管理员账号:cc / 123456"; + return "种子数据初始化成功!默认管理员账号:admin / 123456"; } catch (Exception ex) { diff --git a/Yi.Doc.Md/01.框架快速开始教程/03.如何启动.md b/Yi.Doc.Md/01.框架快速开始教程/03.如何启动.md index 99ccbf2..5146bd7 100644 --- a/Yi.Doc.Md/01.框架快速开始教程/03.如何启动.md +++ b/Yi.Doc.Md/01.框架快速开始教程/03.如何启动.md @@ -22,7 +22,7 @@ vs选中启动项目Yi.Abp.Web模板项目 > 等等?表结构呢?表数据呢?为什么没有sql文件?在这里,统统不需要,配置文件默认开启CodeFirst可自动建库及表结构,默认开启DataSeed种子数据,自动创建初始化数据 -默认种子数据超级管理员账号:cc / 123456 +默认种子数据超级管理员账号:admin / 123456 ## 前端 对于前端,默认提供两个项目,分别对应后端的BBS与RBAC