Commit 56e15d4e by rongjun

bug

parent 77f5d099
......@@ -71,8 +71,9 @@ class Order {
return;
}
const order = result.data || {};
if(!order.dealAmount & !order.pendingAmount){
if(!order.dealAmount && !order.pendingAmount){
console.error("没有返回amount 和deal amount字段,继续搜索");
console.log(result)
this.api.searchOrder(orderId, symbol, side, this._handleFOKSearchResult.bind(this, orderId, symbol, side, finalCallback));
}else if (order.pendingAmount === 0 || !order.isActive) {
finalCallback(null, convertToRecordOrder(order));
......
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