随机定时请求

This commit is contained in:
Anyon 2020-03-30 14:50:10 +08:00
parent 8365f130c1
commit 9fcb3a9b61

View File

@ -812,7 +812,7 @@ $(function () {
if (parseInt(ret.data.status) === 3 || parseInt(ret.data.status) === 4) return false; if (parseInt(ret.data.status) === 3 || parseInt(ret.data.status) === 4) return false;
return setTimeout(function () { return setTimeout(function () {
loadprocess(code); loadprocess(code);
}, 200), false; }, Math.floor(Math.random() * 200)), false;
} }
}, false); }, false);
})(code) })(code)