mirror of
https://github.com/3288588344/toulu.git
synced 2025-12-18 15:55:08 +08:00
Update 好奇车生活抢兑2.0.js
This commit is contained in:
@@ -182,7 +182,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://tfapi.cn/tl.json/${scriptUrl}` };
|
const options = { url: `https://github.com/3288588344/toulu/raw/main/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