@@ -143,6 +143,10 @@ class Cart extends Base
unset($list[$key]);
continue;
}
+ // 如果sku 的 图片为空
+ if (empty($item->sku->image)) {
+ $item->sku->image = $item->goods->image;
+ }
$item['subtotal'] = bcmul($item['nums'], ($item->sku->price ?? $item->goods->price), 2);
$item->goods->visible(explode(',', 'id,title,price,image,marketprice'));