diff --git a/lib/helper/notify.js b/lib/helper/notify.js index a122ed6..73d9e68 100644 --- a/lib/helper/notify.js +++ b/lib/helper/notify.js @@ -430,7 +430,7 @@ function ddBotNotify(text, desp) { const dateNow = Date.now(); const hmac = crypto.createHmac('sha256', DD_BOT_SECRET); hmac.update(`${dateNow}\n${DD_BOT_SECRET}`); - const result = encodeURIComponent(hmac.digest('Util64')); + const result = encodeURIComponent(hmac.digest().toString('base64')); send({ method: 'POST', url: `https://oapi.dingtalk.com/robot/send`,