diff --git a/docs/uniCloud/univerify.md b/docs/uniCloud/univerify.md index 329f5d258a43e93c0490be3033d34a9e6d95336b..44fbb7ce4e0f65f4014657ce35f1cc8acd201378 100644 --- a/docs/uniCloud/univerify.md +++ b/docs/uniCloud/univerify.md @@ -170,7 +170,7 @@ const sign = hmac.digest('hex') ```js // 云函数验证签名,此示例中以接受GET请求为例作演示 const crypto = require('crypto') -module.exports = async(event){ +module.exports = async(event)=>{ const secret = 'your-secret-string' // 自己的密钥不要直接使用示例值,且注意不要泄露 const hmac = crypto.createHmac('sha256', secret);