订单商户类型

This commit is contained in:
liu 2024-03-16 16:56:04 +08:00
parent 85a6b5a8f6
commit 2434e6f2a6

View File

@ -1822,6 +1822,11 @@ class StoreOrderRepository extends BaseRepository
/** @var ProductLabelRepository $labelRepo */ /** @var ProductLabelRepository $labelRepo */
$labelRepo = app()->make(ProductLabelRepository::class); $labelRepo = app()->make(ProductLabelRepository::class);
foreach ($list as &$order) { foreach ($list as &$order) {
if(in_array($order['merchant']['type_id'],Enum::Lihai_Store)){
$order['merchant']['cloud_warehouse'] = "里海云仓";
}else{
$order['merchant']['cloud_warehouse'] = "综合云市场";
}
$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;