From 1233e9f8ba37a614f7b7afc1e8fc32c1032d82eb Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Wed, 13 Jan 2021 17:06:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_cash.js | 2 +- jd_crazy_joy.js | 2 +- jd_jdzz.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jd_cash.js b/jd_cash.js index 18bb18df..107a9246 100644 --- a/jd_cash.js +++ b/jd_cash.js @@ -259,7 +259,7 @@ function showMsg() { function readShareCode() { console.log(`开始`) return new Promise(async resolve => { - $.get({url: `https://code.chiang.fun/api/v1/jd/jdcash/read/${randomCount}/`}, (err, resp, data) => { + $.get({url: `https://code.chiang.fun/api/v1/jd/jdcash/read/${randomCount}/`, 'timeout': 10000}, (err, resp, data) => { try { if (err) { console.log(`${JSON.stringify(err)}`) diff --git a/jd_crazy_joy.js b/jd_crazy_joy.js index e4c52edc..7f0cd8ea 100644 --- a/jd_crazy_joy.js +++ b/jd_crazy_joy.js @@ -659,7 +659,7 @@ function taskUrl(functionId, body = '') { function readShareCode() { console.log(`开始`) return new Promise(async resolve => { - $.get({url: `https://code.chiang.fun/api/v1/jd/jdcrazyjoy/read/${randomCount}/`}, (err, resp, data) => { + $.get({url: `https://code.chiang.fun/api/v1/jd/jdcrazyjoy/read/${randomCount}/`, 'timeout': 10000}, (err, resp, data) => { try { if (err) { console.log(`${JSON.stringify(err)}`) diff --git a/jd_jdzz.js b/jd_jdzz.js index 806eae15..1551f02c 100644 --- a/jd_jdzz.js +++ b/jd_jdzz.js @@ -336,7 +336,7 @@ async function helpFriends() { function readShareCode() { console.log(`开始`) return new Promise(async resolve => { - $.get({url: `https://code.chiang.fun/api/v1/jd/jdzz/read/${randomCount}/`}, (err, resp, data) => { + $.get({url: `https://code.chiang.fun/api/v1/jd/jdzz/read/${randomCount}/`, 'timeout': 10000}, (err, resp, data) => { try { if (err) { console.log(`${JSON.stringify(err)}`)