mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
Update mxbc.js
This commit is contained in:
29
mxbc.js
29
mxbc.js
@@ -31,7 +31,7 @@ let userCount = 0;
|
|||||||
|
|
||||||
async function start() {
|
async function start() {
|
||||||
|
|
||||||
|
await notice()
|
||||||
console.log('\n================== 用户CK ==================\n');
|
console.log('\n================== 用户CK ==================\n');
|
||||||
taskall = [];
|
taskall = [];
|
||||||
for (let user of userList) {
|
for (let user of userList) {
|
||||||
@@ -207,6 +207,33 @@ function getSHA256withRSA(content) {
|
|||||||
|
|
||||||
return sign64u;
|
return sign64u;
|
||||||
}
|
}
|
||||||
|
async function notice() {
|
||||||
|
try {
|
||||||
|
let options = {
|
||||||
|
url: `https://ghproxy.com/https://raw.githubusercontent.com/smallfawn/api/main/notice.json`,
|
||||||
|
headers: {
|
||||||
|
'User-Agent': ''
|
||||||
|
},
|
||||||
|
}
|
||||||
|
//console.log(options);
|
||||||
|
let result = await httpRequest(options);
|
||||||
|
//console.log(result);
|
||||||
|
if (result) {
|
||||||
|
if ('notice' in result) {
|
||||||
|
DoubleLog(`${result.notice}`);
|
||||||
|
} else {
|
||||||
|
options.url = `https://gitee.com/smallfawn/api/raw/master/notice.json`
|
||||||
|
result = await httpRequest(options);
|
||||||
|
if ('notice' in result) {
|
||||||
|
DoubleLog(`${result.notice}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
function ts13() {
|
function ts13() {
|
||||||
return Math.round(new Date().getTime()).toString();
|
return Math.round(new Date().getTime()).toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user