Commit 7e1ccdc5 authored by 姜登's avatar 姜登

product重复

parent 1c770ba1
Pipeline #22212 passed with stage
in 2 seconds
...@@ -89,11 +89,15 @@ class UserService extends Service { ...@@ -89,11 +89,15 @@ class UserService extends Service {
where: { user_id }, where: { user_id },
distinct: true, distinct: true,
}); });
let tmp = [];
for (let i = 0; i < product.length; i++) { for (let i = 0; i < product.length; i++) {
account_info.product.push({ if (!tmp.includes(product[i].service)) {
id: i, account_info.product.push({
name: product[i].service id: tmp.length,
}); name: product[i].service
});
}
} }
//昨日调用信息 //昨日调用信息
const lastday_info = { const lastday_info = {
......
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