替换通知

This commit is contained in:
smallfawn
2025-03-12 15:46:47 +08:00
parent f67685a00a
commit c7162fc71f
9 changed files with 9 additions and 9 deletions

View File

@@ -637,7 +637,7 @@ async function getNotice() {
},
result = await httpRequest(options);
if (!result || !("notice" in result)) {
options.url = `https://gitee.com/smallfawn/Note/raw/master/Notice.json`;
options.url = `https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json`;
result = await httpRequest(options);
}
if (result && "notice" in result) {

View File

@@ -222,7 +222,7 @@ async function getNotice() {
"https://gcore.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://cdn.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/Note/main/Notice.json",
"https://gitee.com/smallfawn/Note/raw/master/Notice.json",
"https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json",
];
let notice = null;
for (const url of urls) {

View File

@@ -823,7 +823,7 @@ async function getNotice() {
},
result = await httpRequest(options);
if (!result || !("notice" in result)) {
options.url = `https://gitee.com/smallfawn/Note/raw/master/Notice.json`;
options.url = `https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json`;
result = await httpRequest(options);
}
if (result && "notice" in result) {

View File

@@ -441,7 +441,7 @@ async function getNotice() {
"https://cdn.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/Note/main/Notice.json",
"https://fastly.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://gitee.com/smallfawn/Note/raw/master/Notice.json",
"https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json",
];
let notice = null;
for (const url of urls) {

View File

@@ -216,7 +216,7 @@ async function getNotice() {
"https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/Note/main/Notice.json",
"https://fastly.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://cdn.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://gitee.com/smallfawn/Note/raw/master/Notice.json"
"https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json"
];
let notice = null;
for (const url of urls) {

2
qtx.js
View File

@@ -329,7 +329,7 @@ async function getNotice() {
"https://gcore.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://cdn.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/Note/main/Notice.json",
"https://gitee.com/smallfawn/Note/raw/master/Notice.json",
"https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json",
];
let notice = null;
for (const url of urls) {

View File

@@ -521,7 +521,7 @@ async function getNotice() {
"https://cdn.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/Note/main/Notice.json",
"https://fastly.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://gitee.com/smallfawn/Note/raw/master/Notice.json",
"https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json",
];
let notice = null;
for (const url of urls) {

View File

@@ -149,7 +149,7 @@ async function getNotice() {
"https://gcore.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://cdn.jsdelivr.net/gh/smallfawn/Note@main/Notice.json",
"https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/Note/main/Notice.json",
"https://gitee.com/smallfawn/Note/raw/master/Notice.json",
"https://ghproxy.net/https://raw.githubusercontent.com/smallfawn/Note/refs/heads/main/Notice.json",
];
let notice = null;
for (const url of urls) {

File diff suppressed because one or more lines are too long