mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-05 19:08:09 +08:00
web hook 忽略返回值为null的值
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user