|
|
@@ -9,7 +9,7 @@ class ServerModel {
|
|
|
return await query(`SELECT * FROM game_enter_server WHERE id = ? `, [id])
|
|
|
}
|
|
|
async getAllServerList(tag: any, ip: string) {
|
|
|
- const rows = await query(`SELECT id,status,name,ip,port,tips FROM game_server WHERE tag = ?`, [tag])
|
|
|
+ const rows = await query(`SELECT id,status,name,ip,port,tips,white_list FROM game_server WHERE tag = ?`, [tag])
|
|
|
const resultArray = (rows as any[]).map(row => {
|
|
|
let status = row.status
|
|
|
if (status == 0 && row.white_list) {
|
|
|
@@ -26,7 +26,7 @@ class ServerModel {
|
|
|
id: row.id,
|
|
|
name: row.name,
|
|
|
server: `ws://${row.ip}:${row.port}`,
|
|
|
- status: row.status,
|
|
|
+ status: status,
|
|
|
tips: row.tips
|
|
|
};
|
|
|
});
|