|
@@ -53,7 +53,7 @@ class Goods extends Common
|
|
|
// $goods = $service->paginate();
|
|
|
$goods = $service->select_autopage();
|
|
|
$goods = collection($goods)->toArray();
|
|
|
- $goods = list_domain_image($goods,['image']);
|
|
|
+ $goods = list_domain_image($goods,['image']);//主图
|
|
|
|
|
|
$this->success('获取成功', $goods);
|
|
|
}
|
|
@@ -129,8 +129,9 @@ class Goods extends Common
|
|
|
$skuPrices = $goods['new_sku_prices'];
|
|
|
$content = $goods['content'];
|
|
|
$goods = $goods->toArray();
|
|
|
- $goods['image'] = localpath_to_netpath($goods['image']);
|
|
|
- $goods['images'] = array_domain_image($goods['images']);
|
|
|
+ $goods['image'] = localpath_to_netpath($goods['image']);//主图
|
|
|
+ $goods['images'] = array_domain_image($goods['images']);//轮播图
|
|
|
+ $skuPrices = list_domain_image($skuPrices->toArray(),['image']);//规格图
|
|
|
$goods['sku_prices'] = $skuPrices;
|
|
|
$goods['content'] = $content;
|
|
|
unset($goods['new_sku_prices']);
|