后台:添加在线人数

This commit is contained in:
luying
2022-05-26 15:32:39 +08:00
parent 70617c3871
commit 1024f4d34d
3 changed files with 34 additions and 1 deletions

View File

@@ -56,6 +56,12 @@ export default class GameController extends Controller {
return
}
public async getOnlineUsersByServer() {
const { ctx } = this;
ctx.body = await ctx.service.game.getOnlineUsersByServer();
return
}
public async stopServerRegister() {
const { ctx } = this;
const { id } = ctx.request.body;