mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
webhook通知支持嵌套body
This commit is contained in:
parent
6385e053ae
commit
8a392170cf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user