From bfa4c9794bcf45613f25df5b3f7e5c49c460b3fc Mon Sep 17 00:00:00 2001 From: Kode Date: Mon, 2 Mar 2020 10:16:36 -0600 Subject: [PATCH] fix: gouhuo (#4148) --- lib/routes/gouhuo/index.js | 4 ++-- lib/routes/gouhuo/strategy.js | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/routes/gouhuo/index.js b/lib/routes/gouhuo/index.js index d6a0acf87..2931ed7f1 100644 --- a/lib/routes/gouhuo/index.js +++ b/lib/routes/gouhuo/index.js @@ -31,12 +31,12 @@ module.exports = async (ctx) => { const response = await got({ method: 'get', - url: `https://gouhuo.qq.com/content/getHomeMainContent?tabId=${tabId}`, + url: `https://gouhuo.qq.com/content/getContentByTab?tabId=${tabId}`, headers: { Referer: `https://gouhuo.qq.com/`, }, }); - const list = response.data.data; + const list = response.data.data.list; const staffs = await cache.getStaffs(ctx, tabId); const title = staffs[0]; diff --git a/lib/routes/gouhuo/strategy.js b/lib/routes/gouhuo/strategy.js index fcde1691b..7f5e3f531 100644 --- a/lib/routes/gouhuo/strategy.js +++ b/lib/routes/gouhuo/strategy.js @@ -16,13 +16,13 @@ module.exports = async (ctx) => { // eslint-disable-next-line no-eval const obj = eval(body.match(/(?<=