Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
518a047343
@ -1817,17 +1817,17 @@ class StoreOrderRepository extends BaseRepository
|
|||||||
$order->takeOrderCount = count($order['takeOrderList']);
|
$order->takeOrderCount = count($order['takeOrderList']);
|
||||||
unset($order['takeOrderList']);
|
unset($order['takeOrderList']);
|
||||||
}
|
}
|
||||||
$orders = $list->toArray();
|
$list = $list->toArray();
|
||||||
$merIds = array_unique(array_column($orders, 'mer_id'));
|
$merIds = array_unique(array_column($list, 'mer_id'));
|
||||||
/** @var ProductLabelRepository $labelRepo */
|
/** @var ProductLabelRepository $labelRepo */
|
||||||
$labelRepo = app()->make(ProductLabelRepository::class);
|
$labelRepo = app()->make(ProductLabelRepository::class);
|
||||||
foreach ($orders as &$order) {
|
foreach ($list as &$order) {
|
||||||
$labelRepo->isOrder = true;
|
$labelRepo->isOrder = true;
|
||||||
$labelRepo->merTypeId = $order['merchant']['type_id'];
|
$labelRepo->merTypeId = $order['merchant']['type_id'];
|
||||||
$labelRepo->isWholeSale = $order['sale_type'] == Enum::SALE_TYPE_WHOLESALE;
|
$labelRepo->isWholeSale = $order['sale_type'] == Enum::SALE_TYPE_WHOLESALE;
|
||||||
$order['orderProduct'] = $labelRepo->appendLabel($merIds, $order['orderProduct']);
|
$order['orderProduct'] = $labelRepo->appendLabel($merIds, $order['orderProduct']);
|
||||||
}
|
}
|
||||||
return compact( 'count','orders');
|
return compact( 'count','list');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function userList($uid, $page, $limit)
|
public function userList($uid, $page, $limit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user