|
@@ -401,7 +401,7 @@ class OrderService extends CrudService {
|
|
const setData = await this.setModel.findById(set_id).lean();
|
|
const setData = await this.setModel.findById(set_id).lean();
|
|
const { _id, set = [], sell_money, name } = setData;
|
|
const { _id, set = [], sell_money, name } = setData;
|
|
const newSet = [];
|
|
const newSet = [];
|
|
- const obj = { _id, name, sell_money, is_set: '0', num };
|
|
|
|
|
|
+ const obj = { _id, name, sell_money, is_set: '0', num, cart_id };
|
|
for (const s of set) {
|
|
for (const s of set) {
|
|
const { goods, goods_name, spec, spec_name, set_num } = s;
|
|
const { goods, goods_name, spec, spec_name, set_num } = s;
|
|
const goodsData = await this.goodsModel.findById(goods, { file: 1 }).lean();
|
|
const goodsData = await this.goodsModel.findById(goods, { file: 1 }).lean();
|