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(); }