(37需求): 查询角色接口
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user