redis 排行榜分区
This commit is contained in:
@@ -55,6 +55,15 @@ export default class Game extends BaseModel {
|
||||
@prop({ required: true })
|
||||
versionCode: number;
|
||||
|
||||
public static async getAllServerList() {
|
||||
let game = await GameModel.findOne().lean();
|
||||
if(game) {
|
||||
return game.serverList;
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
||||
public static async getServerListByType(serverType: string) {
|
||||
let game = await GameModel.findOne().lean();
|
||||
if (!game) {
|
||||
|
||||
Reference in New Issue
Block a user