屏蔽:处理玩家和军团信息接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user