Commit 09cc245f by zihan

bug修复,去除冗余代码

parent ec358069
......@@ -123,12 +123,8 @@ class Order {
console.error("搜索订单出错");
console.error(error);
let timeout = 100;
if(error.code == '2091' || error.code == '4003'){
console.log("2秒后再继续搜索");
timeout = 2000;
}
setTimeout(() => {
this.api.searchOrder(orderId, this.handleSearchResult.bind(this, orderId, symbol, side, callback));
this.api.searchOrder(orderId, handleSearchResult.bind(this, orderId, symbol, side, callback));
}, timeout);
}
if(!result || !result.data){
......
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