修复 正式环境的 库使用错误问题

This commit is contained in:
小肥羊 2025-08-27 15:23:03 +08:00
parent 682eeea11b
commit defabbe6e2
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ namespace Learn.Archives.API.Controllers
{
if (roleId == 0) Oh.Error("无效的角色");
if (!userInfo.IsSa) Oh.Error("无权访问");
var role = roleService.GetByIdAsync(roleId);
var role = await roleService.GetByIdAsync(roleId);
if (role == null) Oh.Error("无效的角色");
return await mrService.AsQueryable()
.Where(s=>s.RoleId==roleId)

View File

@ -20,7 +20,7 @@
"OtherDBArr": [
{
"ConfigId": 1001, //
"ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=usercenter;CharSet=utf8mb4;pooling=true;SslMode=None",
"ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=usercenter_v1;CharSet=utf8mb4;pooling=true;SslMode=None",
"SqlType": "MySql"
}
]