|
@@ -332,7 +332,7 @@ class OrderService extends CrudService {
|
|
|
async getPageData(data, actList) {
|
|
|
const arr = [];
|
|
|
for (const i of data) {
|
|
|
- const { goodsSpec, num } = i;
|
|
|
+ const { goodsSpec, num, cart_id } = i;
|
|
|
const d = await this.goodsSpecModel.aggregate([
|
|
|
{ $match: { _id: ObjectId(goodsSpec) } },
|
|
|
// #region 处理店铺与商品部分
|
|
@@ -381,6 +381,7 @@ class OrderService extends CrudService {
|
|
|
]);
|
|
|
let gs = _.head(d);
|
|
|
if (gs) gs = JSON.parse(JSON.stringify(gs));
|
|
|
+ if (cart_id)gs.cart_id = cart_id;
|
|
|
arr.push(gs);
|
|
|
}
|
|
|
// 平铺数据后,需要处理活动相关部分
|