From df7b3210a31e1a8e1e23c40245bda3295f2110bf Mon Sep 17 00:00:00 2001 From: shanmite Date: Sat, 21 May 2022 16:35:26 +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=90gitlab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index bbdce99..25e23fd 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -291,11 +291,9 @@ const utils = { return new Promise((resolve) => { send({ method: 'GET', - url: 'https://gitee.com/shanmite/lottery-notice/raw/master/notice.json', + url: 'https://gitlab.com/shanmiteko/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', - accept: 'text/plain; charset=utf-8', - referer: 'https://gitee.com/shanmite/lottery-notice/blob/master/notice.json', }, success: res => { try { @@ -303,6 +301,7 @@ const utils = { if (body.node_msg) utils.log.info('公告', '\n' + body.node_msg + '\n'); resolve(body.config) } catch (error) { + utils.log.error('获取远程设置', '获取远程设置错误: ' + error); resolve({}) } },