@@ -107,7 +107,7 @@ class GoodsService extends CrudService {
as: 'act',
},
});
- // // 整理数据
+ // 整理数据
pipeline.push({
$project: {
_id: 0,
@@ -144,6 +144,7 @@ class GoodsService extends CrudService {
d.text = text;
d.tag = tag;
}
+ data.act = _.uniqBy(data.act, '_id');
return data;