后台:服务器维护

This commit is contained in:
luying
2021-12-08 10:25:21 +08:00
parent 103314a8bf
commit 22f8d3c438
29 changed files with 512 additions and 343 deletions

View File

@@ -26,12 +26,12 @@ export default class GameController extends Controller {
public async getServerList() {
const { ctx } = this;
let { serverType, auth, uid, clientVersion } = ctx;
let { uid, clientVersion } = ctx;
console.log('clientVersion', clientVersion);
let serverList = new Array<GroupParam>();
let loginServerList = new Array<ServerParamWithRole>();
let allServers = await ServerlistModel.findByServerType(auth == 1 ? null : serverType);
let allServers = await ServerlistModel.findByEnv(ctx.app.config.realEnv);
let roles = await RoleModel.findAllByUid(uid, true, true);
for (let server of allServers) {
let curGroup = serverList.find(cur => cur.groupId == server.groupId);