From b52be1cf999103bec24e63da178617fa72dc8a7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=A2=9B=E6=95=B1?= <384974724@qq.com>
Date: Thu, 30 May 2019 01:00:49 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BC=A0=E7=BB=98=E6=97=A0=E6=B3=95?=
=?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9C=80=E6=96=B0=E6=BC=AB=E7=94=BBbug=20(#2?=
=?UTF-8?q?257)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* 添加移动支付网分类
* 添加移动支付缓存
* 添加移动支付缓存
* fix 鼠绘无法获取最新漫画bug
---
docs/other.md | 12 ++++++------
lib/routes/shuhui/comics.js | 5 ++++-
2 files changed, 10 insertions(+), 7 deletions(-)
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}`,