From e03b4832e4d9f4f9c668060faf1544fbefbaf486 Mon Sep 17 00:00:00 2001 From: shanmite Date: Tue, 19 Jul 2022 11:37:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=9C=E7=A8=8B=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=8D=A2=E6=BA=90gitee?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index cf97451..4a00cf2 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -292,13 +292,13 @@ const utils = { return new Promise((resolve) => { send({ method: 'GET', - url: 'https://gitlab.com/shanmiteko/lottery-notice/-/raw/master/notice.json', + url: 'https://gitee.com/shanmite/lottery-notice/raw/master/notice.json', headers: { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', }, success: res => { try { - const body = JSON.parse(res.body); + const body = JSON.parse(Buffer.from(res.body, "base64").toString()); if (body.node_msg) utils.log.info('公告', '\n' + body.node_msg + '\n'); resolve(body.config) } catch (error) {