lrf há 2 anos atrás
pai
commit
a5b9594147
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      app/service/view/goods.js

+ 2 - 1
app/service/view/goods.js

@@ -21,7 +21,7 @@ class GoodsService extends CrudService {
   async goodsDetail({ id }) {
     assert(id, '缺少商品信息');
     const pipeline = [{ $match: { _id: ObjectId(id) } }];
-    const goodsProject = { file: 1, tags: 1, name: 1, shot_brief: 1, brief: 1, send_time: 1, shop: 1, view_num: 1 };
+    const goodsProject = { file: 1, tags: 1, name: 1, shot_brief: 1, brief: 1, send_time: 1, shop: 1, view_num: 1, act_tags: 1 };
     // 找店铺信息
     pipeline.push({ $addFields: { shop_id: { $toObjectId: '$shop' } } });
     pipeline.push({
@@ -107,6 +107,7 @@ class GoodsService extends CrudService {
           name: '$$CURRENT.name',
           send_time: '$$CURRENT.send_time',
           tags: '$$CURRENT.tags',
+          act_tags: '$$CURRENT.act_tags',
           shot_brief: '$$CURRENT.shot_brief',
           view_num: '$$CURRENT.view_num',
         },