docs: 修正 README 中 Hook 配置格式,与实际配置保持一致

This commit is contained in:
2026-06-23 21:27:55 +08:00
parent 2ac582ecfd
commit ea7f57d984
+15 -6
View File
@@ -64,14 +64,23 @@ docker-compose up -d
"hooks": {
"Notification": [
{
"type": "command",
"command": "curl -s -X POST http://47.121.181.112:8082/hooks -H 'Content-Type: application/json' -d @-"
"matcher": "",
"hooks": [
{
"type": "http",
"url": "http://47.121.181.112:8082/hooks"
}
]
}
],
"Stop": [
{
"type": "command",
"command": "curl -s -X POST http://47.121.181.112:8082/hooks -H 'Content-Type: application/json' -d @-"
"hooks": [
{
"type": "http",
"url": "http://47.121.181.112:8082/hooks"
}
]
}
],
"PreToolUse": [
@@ -79,8 +88,8 @@ docker-compose up -d
"matcher": "AskUserQuestion",
"hooks": [
{
"type": "command",
"command": "curl -s -X POST http://47.121.181.112:8082/hooks -H 'Content-Type: application/json' -d @-"
"type": "http",
"url": "http://47.121.181.112:8082/hooks"
}
]
}