diff --git a/app/repository/OrderRepository.php b/app/repository/OrderRepository.php index 16cfb01..6bf6a77 100644 --- a/app/repository/OrderRepository.php +++ b/app/repository/OrderRepository.php @@ -446,7 +446,7 @@ class OrderRepository extends Repository $skuIds[] = $sku->id; $arr = []; - $arr['order_coding'] = $order->coding; + $arr['order_coding'] = $order->coding; $arr['coding'] = $sku->coding; $arr['spu_id'] = $sku->spu_id; $arr['spu_activity_id'] = $sku->spu_activity_id; @@ -468,6 +468,7 @@ class OrderRepository extends Repository $arr['has_comment'] = OrderSku::HAS_COMMENT_NO; $arr['is_activity'] = $sku->is_activity; $arr['activity_type'] = $sku->activity_type; + $arr['sku_unit'] = $sku->unit; $insert[] = $arr; if ($sku->is_virtual > 0) {