API 请求超时由 3000 改为 10000

This commit is contained in:
guyuexuan
2021-01-13 15:50:26 +08:00
parent 0715d79954
commit faa28664d9
4 changed files with 15 additions and 15 deletions

View File

@ -416,7 +416,7 @@ function submitInviteId(userName) {
$.post(
{
url: `https://api.ninesix.cc/api/jx-nc/${$.info.smp}/${encodeURIComponent(userName)}?active=${$.info.active}`,
timeout: 3000
timeout: 10000
},
(err, resp, _data) => {
try {
@ -442,7 +442,7 @@ function submitInviteId(userName) {
function getAssistUser() {
return new Promise(resolve => {
try {
$.get({url: `https://api.ninesix.cc/api/jx-nc?active=${$.info.active}`, timeout: 3000}, async (err, resp, _data) => {
$.get({url: `https://api.ninesix.cc/api/jx-nc?active=${$.info.active}`, timeout: 10000}, async (err, resp, _data) => {
try {
const {code, data = {}} = JSON.parse(_data);
if (data.value) {
@ -563,7 +563,7 @@ function taskUrl(function_path, body) {
Host: `wq.jd.com`,
'Accept-Language': `zh-cn`,
},
timeout: 3000,
timeout: 10000,
};
}