From 3f9836981ec74b5c75db904a6b7c17c98097cbde Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 1 Jun 2022 16:37:29 +0800 Subject: [PATCH] setter --- app/repository/OrderRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {