From c855ceee58aeab816f8f6d86f400bde6aeb08403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=89=E5=87=89?= Date: Tue, 4 Jun 2019 16:21:56 +0800 Subject: [PATCH] fix: Nintendo (#2313) --- lib/routes/nintendo/eshop_hk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/nintendo/eshop_hk.js b/lib/routes/nintendo/eshop_hk.js index 65e1227503..68eb0f2abe 100644 --- a/lib/routes/nintendo/eshop_hk.js +++ b/lib/routes/nintendo/eshop_hk.js @@ -4,9 +4,9 @@ const util = require('./utils'); module.exports = async (ctx) => { const response = await got({ method: 'get', - url: `https://www.nintendo.com.hk/data/json/switch_software.json`, + url: 'https://www.nintendo.com.hk/data/json/switch_software.json', }); - const data = response.data.slice(0, 9); + const data = response.data.slice(0, 9).filter(({ link }) => link.startsWith('https://')); // 获取游戏描述 const result = await util.ProcessItem(data, ctx.cache);