dev #13
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue