From 6fff1034aaaf17a1f5e87bcc67937e673b43c823 Mon Sep 17 00:00:00 2001 From: yulixing Date: Thu, 10 Oct 2019 16:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4app=5Fkey=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/open/games.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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,