update
This commit is contained in:
@ -23,7 +23,7 @@ async function main() {
|
||||
}
|
||||
function updateShareCodes(url = 'https://raw.githubusercontent.com/yangtingxiao/QuantumultX/master/scripts/jd/jd_lotteryMachine.js') {
|
||||
return new Promise(resolve => {
|
||||
$.get({url}, async (err, resp, data) => {
|
||||
$.get({url, timeout: 10000}, async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
@ -40,7 +40,7 @@ function updateShareCodes(url = 'https://raw.githubusercontent.com/yangtingxiao/
|
||||
}
|
||||
function updateShareCodesCDN(url = 'https://raw.fastgit.org/yangtingxiao/QuantumultX/master/scripts/jd/jd_lotteryMachine.js') {
|
||||
return new Promise(async resolve => {
|
||||
$.get({url}, async (err, resp, data) => {
|
||||
$.get({url, timeout: 10000}, async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
|
Reference in New Issue
Block a user