mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
webhook通知支持嵌套body
This commit is contained in:
parent
6385e053ae
commit
8a392170cf
|
@ -419,7 +419,12 @@ export function parseBody(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const jsonValue = JSON.parse(val);
|
||||||
|
parsed[key] = jsonValue;
|
||||||
|
} catch (error) {
|
||||||
parsed[key] = val;
|
parsed[key] = val;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
switch (contentType) {
|
switch (contentType) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user