diff --git a/src/controllers/open/games.js b/src/controllers/open/games.js index 821c507..efeab95 100644 --- a/src/controllers/open/games.js +++ b/src/controllers/open/games.js @@ -54,7 +54,7 @@ router.get('/list', async (req, res, next) => { router.get('/keys', async (req, res, next) => { try { const games = await GameInfo.find({deleted: false}) - const result = [] + let result = [] games.map(game => { result.push({ game: game.game_name, @@ -63,6 +63,11 @@ router.get('/keys', async (req, res, next) => { app_key: game.app_key || '', }) }) + + result = result.filter(item => { + return item.game_id.toString().startsWith('5') + }) + res.send({ errcode: 0, gameList: result,