数数:创建角色埋点放到服务器
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user