添加timeout超时
This commit is contained in:
@ -436,7 +436,7 @@ async function showMsg() {
|
||||
}
|
||||
}
|
||||
function readShareCode() {
|
||||
return new Promise(resolve => {
|
||||
return new Promise(async resolve => {
|
||||
$.get({url: `http://api.turinglabs.net/api/v1/jd/pet/read/${randomCount}/`}, (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
@ -454,6 +454,8 @@ function readShareCode() {
|
||||
resolve(data);
|
||||
}
|
||||
})
|
||||
await $.wait(10000);
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
function shareCodesFormat() {
|
||||
|
Reference in New Issue
Block a user