Commit 29cc4525 authored by 李尚科's avatar 李尚科
parents 284223c6 23bd9abf
Pipeline #13625 passed with stage
in 25 seconds
...@@ -36,16 +36,13 @@ class HomeService extends Service { ...@@ -36,16 +36,13 @@ class HomeService extends Service {
}).catch(error => { }).catch(error => {
ctx.failed(error); ctx.failed(error);
}); });
ctx.logger.info(retList);
ctx.logger.info(retList)[0];
ctx.logger.info(retList)[1];
let historyAmount = 0; let historyAmount = 0;
for (let i in retList) { for (let i in retList) {
if (retList[i] === null) { if (retList[i] === null) {
continue; continue;
} }
historyAmount += retList[i].worth_h + retList[i].worth_l; historyAmount += retList[i].worth_h.length + retList[i].worth_l.length;
} }
ret.have_history = historyAmount > 0 ? true : false; ret.have_history = historyAmount > 0 ? true : false;
......
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