diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 90fe6ac..598ecae 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -31,12 +31,9 @@ { "label": "curl webhook", "type": "shell", - "command": "curl", + "command": "python", "args": [ - "-X", "POST", - // "-H", "Content-Type: application/html", - // "-d", "{\"event\": \"build_success\"}", // 自定义数据体 - "-k", "https://47.112.174.207:8989/hook?access_key=q1kbVssnJzhWrrW7T1CDefq58wKs9DL70gWHznYNFH8TBwI9" + "-c", "import requests; r=requests.post('https://47.112.174.207:8989/hook?access_key=q1kbVssnJzhWrrW7T1CDefq58wKs9DL70gWHznYNFH8TBwI9'); " ], "problemMatcher": ["$tsc"], "dependsOn": ["Git Commit & Push"]