diff --git a/docs/other.md b/docs/other.md index 1a18fcf24..a039a24a8 100644 --- a/docs/other.md +++ b/docs/other.md @@ -68,6 +68,12 @@ pageClass: routes +## cnBeta + +### 最新 + + + ## DoNews ### 栏目 @@ -901,9 +907,3 @@ type 为 all 时,category 参数不支持 cost 和 free ### 全文 - -## cnBeta - -### 最新 - - diff --git a/lib/routes/shuhui/comics.js b/lib/routes/shuhui/comics.js index 7bad214e5..951761595 100644 --- a/lib/routes/shuhui/comics.js +++ b/lib/routes/shuhui/comics.js @@ -3,10 +3,13 @@ const axios = require('@/utils/axios'); module.exports = async (ctx) => { const id = ctx.params.id; + const api_data = await axios.get('https://prod-u.ishuhui.com/ver'); + const comics_code = api_data.data.data.comics; + let lastEpisodeId; const rssData = await axios({ method: 'get', - url: `https://prod-api.ishuhui.com/ver/67715120/anime/detail?id=${id}&type=comics&.json`, + url: `https://prod-api.ishuhui.com/ver/${comics_code}/anime/detail?id=${id}&type=comics&.json`, headers: { Origin: 'https://www.ishuhui.com', Referer: `https://www.ishuhui.com/comics/anime/${id}`,