Perf webhook (#3406)

* perf: plugin webhook

* perf: plugin webhook
This commit is contained in:
Archer
2024-12-16 16:44:39 +08:00
committed by GitHub
parent 8e9c030600
commit 8ba339e78f
16 changed files with 439 additions and 211 deletions

View File

@@ -84,4 +84,18 @@ function main({input}){
}
```
![alt text](/imgs/image-2.png)
![alt text](/imgs/image-2.png)
### createHmac 加密
与 node 中 crypto 的 createHmac 方法一致。
```js
function main({secret}){
const {sign,timestamp} = createHmac('sha256',secret)
return {
sign,timestamp
}
}
```