From 84ca1eed7dd11b1d60d21e45d58da36ca46e4c52 Mon Sep 17 00:00:00 2001 From: PipeYume <81861009+PipeYume@users.noreply.github.com> Date: Tue, 18 Feb 2025 11:32:25 +0800 Subject: [PATCH] =?UTF-8?q?copymanga:=20=E8=AF=84=E8=AE=BA=E6=A5=BC?= =?UTF-8?q?=E5=B1=82=E4=B8=AD=E5=A2=9E=E5=8A=A0=20`=E5=9B=9E=E5=A4=8D?= =?UTF-8?q?=E8=80=85=F0=9F=91=89=E8=A2=AB=E5=9B=9E=E5=A4=8D=E8=80=85`=20?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=20(#47)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- copy_manga.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/copy_manga.js b/copy_manga.js index 6763ba6..2ce7be5 100644 --- a/copy_manga.js +++ b/copy_manga.js @@ -694,6 +694,9 @@ class CopyManga extends ComicSource { ); if (res.status !== 200) { + if(res.status === 210){ + throw "210:注冊用戶一天可以發5條評論" + } throw `Invalid status code: ${res.status}`; } @@ -704,7 +707,7 @@ class CopyManga extends ComicSource { return { comments: data.results.list.map(e => { return { - userName: e.user_name, + userName: replyTo ? `${e.user_name} 👉 ${e.parent_user_name}` : e.user_name, // 拷贝的回复页并没有楼中楼(所有回复都在一个response中),但会显示谁回复了谁。所以加上👉显示。 avatar: e.user_avatar, content: e.comment, time: e.create_at,