|
@@ -71,6 +71,10 @@ class OrderService extends CrudService {
|
|
|
obj.real_pay = _.get(i, 'pay.pay_money');
|
|
|
const shopData = _.pick(_.head(goods), [ 'shop', 'shop_name' ]);
|
|
|
obj.shop = { _id: shopData.shop, name: shopData.shop_name };
|
|
|
+ if (!shopData.name) {
|
|
|
+ const d = await this.shopModel.findById(shopData._id, { name: 1 }).lean();
|
|
|
+ obj.name = d.name;
|
|
|
+ }
|
|
|
const specs = [];
|
|
|
for (const shop of goods) {
|
|
|
const { goods: specGoods, is_set = '1' } = shop;
|