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

product重复

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