API 请求超时由 3000 改为 10000
This commit is contained in:
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user