diff --git a/app/traits/spu/SkuTrait.php b/app/traits/spu/SkuTrait.php index 21ed590..02f8a5e 100644 --- a/app/traits/spu/SkuTrait.php +++ b/app/traits/spu/SkuTrait.php @@ -62,6 +62,7 @@ trait SkuTrait $item->begin_at = $item->is_activity > 0 ? $item->limitTime['begin_at'] : ''; $item->end_at = $item->is_activity > 0 ? $item->limitTime['end_at'] : ''; + $item->unit = $item->spu->unit ?? ''; unset($item->spu); unset($item->activity);