mirror of
https://github.com/3288588344/toulu.git
synced 2025-12-16 23:11:00 +08:00
Add files via upload
This commit is contained in:
@@ -180,7 +180,7 @@ async function getNotice() {
|
||||
//==============================================获取远程版本=================================================
|
||||
function getVersion(scriptUrl, timeout = 3 * 1000) {
|
||||
return new Promise((resolve) => {
|
||||
const options = { url: `https://fastly.jsdelivr.net/gh/${scriptUrl}` };
|
||||
const options = { url: `https://tfapi.cn/tl.json/${scriptUrl}` };
|
||||
$.get(options, (err, resp, data) => {
|
||||
try {
|
||||
const regex = /scriptVersionNow\s*=\s*(["'`])([\d.]+)\1/;
|
||||
|
||||
Reference in New Issue
Block a user