From e4a17cd5a38127723af6e247b48994540725d566 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 1 Mar 2025 09:55:27 +0000 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4url=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ServiceLogic.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ServiceLogic.cpp b/ServiceLogic.cpp index 0b8a173..71402fb 100644 --- a/ServiceLogic.cpp +++ b/ServiceLogic.cpp @@ -54,9 +54,19 @@ http::response badRequest(const http::request urlFilter = { - "/", "/search", "/login", "/MessageBoard", "/我的笔记", "/我的笔记/", "/我的博客", + "/", + "/search", + "/login", + "/redirect", + "/MessageBoard", + "/我的笔记", + "/我的笔记/", + "/我的博客", + "/我的博客/2020/11/22/如何给岛国小电影找字幕", }; + // clang-format on auto application = Singleton::instance(); application->insertUrl("/api/v1/visit_analysis", [](Older::HttpSession &session, const Older::Application::Request &request, @@ -71,7 +81,7 @@ void visitAnalysis() { url = root["url"].as_string(); } auto database = Singleton::instance(); - if (std::filesystem::exists("amass_blog" + url) && (url.find("/我的博客/page") != 0) && (url.find("/wt") != 0)) { + if (std::filesystem::exists("amass_blog" + url) && (url.find("/我的博客/page") != 0)) { if (url.size() > 1 && url.back() == '/') { url.pop_back(); }