mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 18:40:37 +08:00
webhook通知支持嵌套body
This commit is contained in:
1 parent
6385e053ae
commit
8a392170cf
1 file changed
+5
@@ -419,7 +419,12 @@ export function parseBody(
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const jsonValue = JSON.parse(val);
|
||||
parsed[key] = jsonValue;
|
||||
} catch (error) {
|
||||
parsed[key] = val;
|
||||
}
|
||||
});
|
||||
|
||||
switch (contentType) {
|
||||
|
||||
Reference in new issue
Block a user