dev #13

Merged
hy merged 2 commits from dev into staging 2025-08-27 15:44:34 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit defabbe6e2 - Show all commits

View File

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

View File

@ -20,7 +20,7 @@
"OtherDBArr": [ "OtherDBArr": [
{ {
"ConfigId": 1001, // "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" "SqlType": "MySql"
} }
] ]