webhook通知支持嵌套body

This commit is contained in:
whyour 2022-10-29 18:43:16 +08:00
parent 6385e053ae
commit 8a392170cf

View File

@ -419,7 +419,12 @@ export function parseBody(
return;
}
parsed[key] = val;
try {
const jsonValue = JSON.parse(val);
parsed[key] = jsonValue;
} catch (error) {
parsed[key] = val;
}
});
switch (contentType) {