From 629b95eee7a814479af1ea0d154bbc241c0f67bb Mon Sep 17 00:00:00 2001 From: x1ao4 Date: Tue, 20 May 2025 10:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9=20=E2=80=9D?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=B6=89=E5=8F=8A=E8=BF=9D=E8=A7=84=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E2=80=9C=20=E9=93=BE=E6=8E=A5=E7=9A=84=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E6=9C=BA=E5=88=B6=E5=92=8C=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index dc47931..a6da2ff 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1282,14 +1282,14 @@ formatShareUrlBanMessage(message) { if (!message) return message; - if (message.includes("分享者用户封禁链接查看受限")) { + if (message.includes("分享者用户封禁链接查看受限") || + message.includes("文件涉及违规内容") || + message.includes("分享地址已失效")) { return "该分享已失效,不可访问"; } else if (message.includes("好友已取消了分享")) { return "该分享已被取消,无法访问"; } else if (message.includes("文件已被分享者删除") || message === "文件已被分享者删除或文件夹为空") { return "该分享已被删除,无法访问"; - } else if (message.includes("分享地址已失效")) { - return "该分享已失效,不可访问"; } return message; @@ -1661,7 +1661,7 @@ // 判断保存路径是否包含电视节目相关的关键词 if (task.savepath) { - const tvKeywords = ["影视", "电视", "节目", "剧", "动漫", "动画", "番", "综艺", "真人秀", "TV", "Tv", "tv", "Series", "series", "Show", "show"]; + const tvKeywords = ["电视", "节目", "剧", "动漫", "动画", "番", "综艺", "真人秀", "TV", "Tv", "tv", "Series", "series", "Show", "show"]; isTVShow = tvKeywords.some(keyword => task.savepath.includes(keyword)); } @@ -2029,7 +2029,8 @@ "好友已取消了分享", "文件已被分享者删除", "文件夹为空", - "分享地址已失效" + "分享地址已失效", + "文件涉及违规内容" ]; // 如果没有搜索结果,直接返回