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 {
where: { user_id },
distinct: true,
});
let tmp = [];
for (let i = 0; i < product.length; i++) {
account_info.product.push({
id: i,
name: product[i].service
});
if (!tmp.includes(product[i].service)) {
account_info.product.push({
id: tmp.length,
name: product[i].service
});
}
}
//昨日调用信息
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