From 965734c2f2f84e44f07b40b2ca0dcb81f6c380bc Mon Sep 17 00:00:00 2001 From: ruigangChen <513755770@qq.com> Date: Thu, 26 Aug 2021 11:54:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dingtalk=E7=AD=BE=E5=90=8Dbas?= =?UTF-8?q?e64=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/helper/notify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`,