mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
Update gqcq.js
This commit is contained in:
14
gqcq.js
14
gqcq.js
@@ -494,7 +494,9 @@ async function notice() {
|
|||||||
try {
|
try {
|
||||||
let options = {
|
let options = {
|
||||||
url: `https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/api/main/notice.json`,
|
url: `https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/api/main/notice.json`,
|
||||||
headers: {},
|
headers: {
|
||||||
|
'User-Agent': ''
|
||||||
|
},
|
||||||
}
|
}
|
||||||
//console.log(options);
|
//console.log(options);
|
||||||
let result = await httpRequest(options);
|
let result = await httpRequest(options);
|
||||||
@@ -503,11 +505,11 @@ async function notice() {
|
|||||||
if ('notice' in result) {
|
if ('notice' in result) {
|
||||||
DoubleLog(`${result.notice}`);
|
DoubleLog(`${result.notice}`);
|
||||||
} else {
|
} 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);
|
result = await httpRequest(options);
|
||||||
if ('notice' in result) {
|
if ('notice' in result) {
|
||||||
DoubleLog(`${result.notice}`);
|
DoubleLog(`${result.notice}`);
|
||||||
} */
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user