Commit e189c4f6 by rongjun

bug

parent 97c2be24
...@@ -101,6 +101,7 @@ class biboxApi { ...@@ -101,6 +101,7 @@ class biboxApi {
for(const a of oldD.asks){ for(const a of oldD.asks){
if(response.data.price === a[0]) { if(response.data.price === a[0]) {
has = true; has = true;
newCount = a[1];
if (response.data.action === 'ADD') { if (response.data.action === 'ADD') {
newCount += response.data.count; newCount += response.data.count;
} }
...@@ -123,6 +124,7 @@ class biboxApi { ...@@ -123,6 +124,7 @@ class biboxApi {
for(const a of oldD.bids){ for(const a of oldD.bids){
if(response.data.price === a[0]) { if(response.data.price === a[0]) {
has = true; has = true;
newCount = a[1];
if (response.data.action === 'ADD') { if (response.data.action === 'ADD') {
newCount += response.data.count; newCount += response.data.count;
} }
......
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