Commit 17a258b8 by zihan

下单流程bug修复

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