From c4b6187fc99162196dcae530ad84ecbea679fef5 Mon Sep 17 00:00:00 2001 From: Skykey Date: Wed, 9 Mar 2022 22:25:40 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=92=AD=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3=EF=BC=88=E5=8F=94=E5=8F=94=E6=94=B9?= =?UTF-8?q?=E4=BA=86=E6=8E=A5=E5=8F=A3=EF=BC=8C=E9=99=88=E7=9D=BF=E6=9F=A0?= =?UTF-8?q?=E6=AA=AC=E4=BB=80=E4=B9=88=E6=97=B6=E5=80=99=E7=86=9F=E5=95=8A?= =?UTF-8?q?=EF=BC=89;2.=E6=9B=B4=E6=96=B0README;3.=E6=9B=B4=E6=96=B0CMakeL?= =?UTF-8?q?ist.txt=EF=BC=8C=E6=B7=BB=E5=8A=A0Spdlog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ src/BilibiliMessage.cpp | 2 ++ src/CMakeLists.txt | 3 ++- version.json | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd6833f..d861a36 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ 注:本插件为控制台程序(Console Application),无界面无托盘。可以通过查询`ASoulNotification.exe`进程检查插件运行状态。 +注:叔叔有风控系统,有时同一局域网请求过多,即使是5s一次查询也会被掐。插件出错6次自动退出后,可以自行前往`logs`文件夹内的日志文件验证是否为这种情况(一般错误提示是远程关闭了访问)。此时可以**等待半小时左右**重新开启插件。 + [功能介绍](#功能介绍)|[使用教程](#使用教程)|[下载地址](#下载地址)|[友情链接](#友情链接) ## 功能介绍 diff --git a/src/BilibiliMessage.cpp b/src/BilibiliMessage.cpp index 2e1f842..1f899a9 100644 --- a/src/BilibiliMessage.cpp +++ b/src/BilibiliMessage.cpp @@ -223,6 +223,8 @@ BilibiliLiveCard BiliBiliMessage::liveQuery(const QString& url) title = QString::fromStdString(doc["data"]["live_room"]["title"].get()); nickname = QString::fromStdString(doc["data"]["name"].get()); liveurl = QString::fromStdString(doc["data"]["live_room"]["url"].get()); + // Fuck You Bilibili, live room url TRAITS https://live.bilibili.com/22625027?broadcast_type=0\u0026is_room_feed=1 + liveurl = liveurl.mid(0, liveurl.indexOf('?')); } catch (...) { diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e29c380..b503028 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,11 +10,12 @@ add_compile_options("$<$:/utf-8>") project ("ASoulNotification") find_package(Qt5 COMPONENTS Core Network) +find_package(spdlog CONFIG REQUIRED) include_directories(${CMAKE_CURRENT_LIST_DIR}/3rd) set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/logo.rc") add_executable (ASoulNotification ${APP_ICON_RESOURCE_WINDOWS} "ASoulNotification.cpp" "BilibiliMessage.h" "BilibiliMessage.cpp" "Essential.h" "3rd/json.hpp" "3rd/wintoastlib.h" "3rd/wintoastlib.cpp") -target_link_libraries(ASoulNotification Qt5::Core Qt5::Network) +target_link_libraries(ASoulNotification Qt5::Core Qt5::Network spdlog_header_only) diff --git a/version.json b/version.json index 6febb40..c805598 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,9 @@ { "versions": [ + { + "version": "v2.1.0", + "url": "https://github.com/skykeyjoker/A-Soul-Notification/releases/tag/v2.1.0" + }, { "version": "v2.0.0", "url": "https://github.com/skykeyjoker/A-Soul-Notification/releases/tag/v2.0.0"