mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-16 14:57:49 +08:00
web hook 忽略返回值为null的值
This commit is contained in:
parent
97b81ea179
commit
dd1e8ef430
@ -339,6 +339,10 @@ static mINI jsonToMini(const Value &obj) {
|
|||||||
mINI ret;
|
mINI ret;
|
||||||
if (obj.isObject()) {
|
if (obj.isObject()) {
|
||||||
for (auto it = obj.begin(); it != obj.end(); ++it) {
|
for (auto it = obj.begin(); it != obj.end(); ++it) {
|
||||||
|
if (it->isNull()) {
|
||||||
|
// 忽略null,修复wvp传null覆盖Protocol配置的问题
|
||||||
|
continue;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
auto str = (*it).asString();
|
auto str = (*it).asString();
|
||||||
ret[it.name()] = std::move(str);
|
ret[it.name()] = std::move(str);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user