Commit 17a258b8 by zihan

下单流程bug修复

parent 9c9613c6
...@@ -132,8 +132,8 @@ class Order { ...@@ -132,8 +132,8 @@ class Order {
this.api.searchOrder(orderId, this.handleSearchResult.bind(this, orderId, symbol, side, callback)); this.api.searchOrder(orderId, this.handleSearchResult.bind(this, orderId, symbol, side, callback));
}, timeout); }, timeout);
} }
if(!result.data){ if(!result || !result.data){
console.error("没有返回amount,再次搜索"); console.error("没有返回数据,再次搜索");
api2.searchOrder(orderId, symbol, side, handleSearchResult.bind(this)); api2.searchOrder(orderId, symbol, side, handleSearchResult.bind(this));
return; return;
} }
......
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