From 92868e890ea6ac4628dc01e25ac43ba80755b7f4 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Wed, 12 Apr 2023 18:20:42 +0800 Subject: [PATCH] Update gqcq.js --- gqcq.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gqcq.js b/gqcq.js index 88d57a5..33c75a5 100644 --- a/gqcq.js +++ b/gqcq.js @@ -494,7 +494,9 @@ async function notice() { try { let options = { url: `https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/api/main/notice.json`, - headers: {}, + headers: { + 'User-Agent': '' + }, } //console.log(options); let result = await httpRequest(options); @@ -503,11 +505,11 @@ async function notice() { if ('notice' in result) { DoubleLog(`${result.notice}`); } else { - /* options.url = `https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/api/main/notice.json` - result = await httpRequest(options); - if ('notice' in result) { - DoubleLog(`${result.notice}`); - } */ + options.url = `https://gitee.com/smallfawn/api/raw/master/notice.json` + result = await httpRequest(options); + if ('notice' in result) { + DoubleLog(`${result.notice}`); + } } } else { }