mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 08:27:24 +00:00
copymanga: 评论楼层中增加 回复者👉被回复者
的显示 (#47)
This commit is contained in:
@@ -694,6 +694,9 @@ class CopyManga extends ComicSource {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
|
if(res.status === 210){
|
||||||
|
throw "210:注冊用戶一天可以發5條評論"
|
||||||
|
}
|
||||||
throw `Invalid status code: ${res.status}`;
|
throw `Invalid status code: ${res.status}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -704,7 +707,7 @@ class CopyManga extends ComicSource {
|
|||||||
return {
|
return {
|
||||||
comments: data.results.list.map(e => {
|
comments: data.results.list.map(e => {
|
||||||
return {
|
return {
|
||||||
userName: e.user_name,
|
userName: replyTo ? `${e.user_name} 👉 ${e.parent_user_name}` : e.user_name, // 拷贝的回复页并没有楼中楼(所有回复都在一个response中),但会显示谁回复了谁。所以加上👉显示。
|
||||||
avatar: e.user_avatar,
|
avatar: e.user_avatar,
|
||||||
content: e.comment,
|
content: e.comment,
|
||||||
time: e.create_at,
|
time: e.create_at,
|
||||||
|
Reference in New Issue
Block a user