|
@@ -24,7 +24,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 });
|
|
|
specs = JSON.parse(JSON.stringify(specs));
|
|
|
goods = _.omit(goods, [ 'meta', '__v' ]);
|
|
|
- const shop = _.pick(goods.shop, [ 'logo', 'name', 'person', 'phone' ]);
|
|
|
+ const shop = _.pick(goods.shop, [ 'logo', 'name', 'person', 'phone', '_id' ]);
|
|
|
delete goods.shop;
|
|
|
|
|
|
// goods: 商品信息; specs:商品规格信息; shop:店铺信息
|