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) {