From dd1e8ef430dbc4b6f15ee572e77d4e9ed23a060d Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Sun, 20 Apr 2025 14:50:56 +0800 Subject: [PATCH] =?UTF-8?q?web=20hook=20=E5=BF=BD=E7=95=A5=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=80=BC=E4=B8=BAnull=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebHook.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/WebHook.cpp b/server/WebHook.cpp index 0510ea90..b685d5c9 100755 --- a/server/WebHook.cpp +++ b/server/WebHook.cpp @@ -339,6 +339,10 @@ static mINI jsonToMini(const Value &obj) { mINI ret; if (obj.isObject()) { for (auto it = obj.begin(); it != obj.end(); ++it) { + if (it->isNull()) { + // 忽略null,修复wvp传null覆盖Protocol配置的问题 + continue; + } try { auto str = (*it).asString(); ret[it.name()] = std::move(str);