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