From 30e79564ebdbde48faa2d176e5be0bc029ec5998 Mon Sep 17 00:00:00 2001 From: yulixing Date: Mon, 29 Jul 2019 16:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/games/data.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/controllers/games/data.js b/src/controllers/games/data.js index 2b04eb9..8e0d742 100644 --- a/src/controllers/games/data.js +++ b/src/controllers/games/data.js @@ -29,8 +29,6 @@ router.get('/report', async (req, res, next) => { const date = query.date const isNew = parseInt(query.isNew) - console.log(query) - try { const categoryRes = await axios({ url: gameReportApiUrl, @@ -45,8 +43,6 @@ router.get('/report', async (req, res, next) => { }, }) - console.log(categoryRes.data) - if (categoryRes.data.errcode === 0) { const categoryInfo = categoryRes.data.result const category = [] @@ -56,9 +52,6 @@ router.get('/report', async (req, res, next) => { } } - console.log('category', category) - console.log('categoryInfo', categoryInfo) - if (category.length === 0) { res.send({ errcode: 404, @@ -75,7 +68,6 @@ router.get('/report', async (req, res, next) => { ) }) - console.log(getDataArr) const dataArr = await Promise.all(getDataArr) const allData = Object.assign(...dataArr) @@ -109,21 +101,11 @@ router.get('/report', async (req, res, next) => { return } } catch (err) { - console.log(err) next(err) } }) function getCategoryData(cateName, date, is_new, game_id, platform_id) { - console.log( - JSON.stringify({ - gameid: game_id, - channel: platform_id, - times: date, - is_new: is_new, - category: cateName, - }) - ) return new Promise(async (resolve, reject) => { const dataRes = await axios({ url: gameReportApiUrl,