mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-11 19:05:20 +08:00
webhook通知支持嵌套body
This commit is contained in:
+6
-1
@@ -419,7 +419,12 @@ export function parseBody(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
parsed[key] = val;
|
try {
|
||||||
|
const jsonValue = JSON.parse(val);
|
||||||
|
parsed[key] = jsonValue;
|
||||||
|
} catch (error) {
|
||||||
|
parsed[key] = val;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
switch (contentType) {
|
switch (contentType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user