mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
webhook通知支持嵌套body
This commit is contained in:
+6
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user