(37需求): 查询角色接口

This commit is contained in:
luying
2023-05-06 21:08:59 +08:00
parent d30abf287f
commit 4fe472b537
5 changed files with 84 additions and 3 deletions

View File

@@ -73,6 +73,7 @@ module.exports = () => {
'/cb/getrolebyserver',
'/cb/getserverinfo',
'/cb/getrolebyuid',
'/cb/getrolebyuidandserver',
];
for(let str of urls) {
if(url && url.startsWith(str)) {
@@ -94,6 +95,8 @@ module.exports = () => {
case '/cb/getrolebyserver':
case '/cb/getserverinfo':
return ctx.query.server_id.toString();
case '/cb/getrolebyuidandserver':
return ctx.query? ctx.query.dsid.toString(): ctx.request.body.dsid.toString();
case '/cb/getrolebyuid':
return 'main';
}