屏蔽:处理玩家和军团信息接口

This commit is contained in:
luying
2021-11-11 15:51:25 +08:00
parent bbb2903f12
commit 89e3dd519b
17 changed files with 261 additions and 81 deletions

View File

@@ -12,14 +12,14 @@ export default class SdkController extends Controller {
public async treatRoleName() {
const { ctx } = this;
const params = new RoleNameCallBackParam(ctx.request.body);
const params = new RoleNameCallBackParam(ctx.query);
ctx.body = await ctx.service.sdk.treatRoleName(params);
return;
}
public async treatGuildName() {
const { ctx } = this;
const params = new GuildNameCallBackParam(ctx.request.body);
const params = new GuildNameCallBackParam(ctx.query);
ctx.body = await ctx.service.sdk.treatGuildName(params);
return;
@@ -28,7 +28,7 @@ export default class SdkController extends Controller {
public async getGuildByUser() {
const { ctx } = this;
const params = new GetGuildInfoByUserParam(ctx.request.body);
const params = new GetGuildInfoByUserParam(ctx.query);
ctx.body = await ctx.service.sdk.getGuildByUser(params);
return;
}