Commit 195a7e74 by zihan

改为rest来请求深度

parent f083068d
......@@ -217,6 +217,7 @@ class biboxApi {
localAddress: bindIP,
};
console.log("request with:"+bindIP);
request(options, (error, response, body) => {
if (error) {
callback(error);
......@@ -226,6 +227,12 @@ class biboxApi {
if (result.code === '200000') {
callback(null, result);
} else {
if(result.code === '429013'){
this.allowRequest = false;
setTimeout(()=>{
this.allowRequest = true;
},60*3);
}
callback(result, null);
}
} catch (e) {
......
......@@ -66,7 +66,7 @@ class KucoinCollector extends BaseCollector{
}
}
console.log("共有IP个数:"+ IPs.length);
const interval = Math.round(100/IPs.length);
const interval = Math.round(200/IPs.length);
let index = 0;
setInterval(()=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment