Update gqcq.js

This commit is contained in:
smallfawn
2023-04-12 18:20:42 +08:00
committed by GitHub
parent 13b9ccb060
commit 92868e890e

View File

@@ -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`
options.url = `https://gitee.com/smallfawn/api/raw/master/notice.json`
result = await httpRequest(options);
if ('notice' in result) {
DoubleLog(`${result.notice}`);
} */
}
}
} else {
}