From a08c2cfa22e23c68b13fdca3322b272f19e3715f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E5=87=89?= Date: Tue, 6 Nov 2018 20:09:26 +0800 Subject: [PATCH] Hotfix: Google Doodles (#1070) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 完成任务:日常眼瞎(1/1) --- routes/google/doodles.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/routes/google/doodles.js b/routes/google/doodles.js index beb91b9c2..ed075b98a 100644 --- a/routes/google/doodles.js +++ b/routes/google/doodles.js @@ -7,9 +7,7 @@ module.exports = async (ctx) => { const month = current.getMonth() + 1; const link = `https://www.google.com/doodles?hl=${language}`; - const { - data: { data }, - } = await axios({ + const { data } = await axios({ method: 'get', url: `https://www.google.com/doodles/json/${year}/${month}?hl=${language}`, headers: {