Commit ecdd2c9d by Sxy

fix: bug

parent 7b95cf86
...@@ -46,9 +46,9 @@ class StatisticsService { ...@@ -46,9 +46,9 @@ class StatisticsService {
let productCount = 0; let productCount = 0;
for (let info of val.data) { for (let info of val.data) {
productCount += info.count; productCount += info.count;
channels.add(info.uapp_id.toString()); channels.add(info.uapp_id ? info.uapp_id.toString() : "");
result.push({ result.push({
uapp_id: info.uapp_id.toString(), uapp_id: info.uapp_id ? info.uapp_id.toString() : "",
count: info.count, count: info.count,
type_code: val.type_code type_code: val.type_code
}) })
...@@ -78,9 +78,9 @@ class StatisticsService { ...@@ -78,9 +78,9 @@ class StatisticsService {
let productCount = 0; let productCount = 0;
for (let info of val.data) { for (let info of val.data) {
productCount += info.count; productCount += info.count;
channels.add(info.uapp_id.toString()); channels.add(info.uapp_id ? info.uapp_id.toString() : "");
result.push({ result.push({
uapp_id: info.uapp_id.toString(), uapp_id: info.uapp_id ? info.uapp_id.toString() : "",
count: info.count, count: info.count,
type_code: val.type_code type_code: val.type_code
}) })
......
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