lrf 2 년 전
부모
커밋
778d6e1bba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/view/goods.js

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

@@ -26,7 +26,7 @@ class GoodsService extends CrudService {
     let specs = await this.goodsSpecModel.find({ goods: id, status: '0' }, { sell_money: 1, flow_money: 1, freight: 1, name: 1, num: 1, can_group: 1, group_config: 1, file: 1 });
     specs = JSON.parse(JSON.stringify(specs));
     goods = _.omit(goods, [ 'meta', '__v' ]);
-    const shop = _.pick(goods.shop, [ 'logo', 'name', 'person', 'phone', '_id' ]);
+    const shop = _.pick(goods.shop, [ 'logo', 'name', 'person', 'phone', '_id', 'goods_score', 'send_score', 'service_score' ]);
     delete goods.shop;
     const goodsNum = await this.goodsModel.count({ shop });
     shop.goods_num = goodsNum;