数数:创建角色埋点放到服务器

This commit is contained in:
luying
2022-02-26 11:52:14 +08:00
parent e478a41d9f
commit 87ce274831
4 changed files with 30 additions and 5 deletions

View File

@@ -46,8 +46,8 @@ export default class AccountController extends Controller {
public async createRole() {
const { ctx } = this;
const { serverId } = ctx.request.body;
ctx.body = await ctx.service.auth.createRole(serverId);
const { serverId, distinctId } = ctx.request.body;
ctx.body = await ctx.service.auth.createRole(serverId, distinctId);
}
public async bind() {