diff --git a/app/api/controller/Goods.php b/app/api/controller/Goods.php index 1370a0f4..6e5006e6 100644 --- a/app/api/controller/Goods.php +++ b/app/api/controller/Goods.php @@ -1,13 +1,4 @@ -// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\api\controller; diff --git a/app/api/service/Goods.php b/app/api/service/Goods.php index 3f4a6e53..6be8cd53 100644 --- a/app/api/service/Goods.php +++ b/app/api/service/Goods.php @@ -218,7 +218,7 @@ class Goods extends GoodsService return []; } $list = $goodsList->toArray(); - $list['data'] = $this->newFormatGoodsList($list['data']); + //$list['data'] = $this->newFormatGoodsList($list['data']); return $list; } @@ -257,7 +257,7 @@ class Goods extends GoodsService } $list = $goodsList->toArray(); - $list['data'] = $this->newFormatGoodsList($list['data']); + //$list['data'] = $this->newFormatGoodsList($list['data']); return $list; } @@ -278,11 +278,11 @@ class Goods extends GoodsService 'paihang' => 1, 'categoryId' => $v['category_id'], ], 3); - $v['goods_list'] = []; - if (!$goodsList->isEmpty()) { - $list2 = $goodsList->toArray()['data']; - $v['goods_list'] = $this->newFormatGoodsList($list2); - } + $v['goods_list'] = $goodsList->toArray()['data']; + // if (!$goodsList->isEmpty()) { + // $list2 = $goodsList->toArray()['data']; + // $v['goods_list'] = $this->newFormatGoodsList($list2); + // } } return $list; diff --git a/app/store/model/Goods.php b/app/store/model/Goods.php index 1f274f46..5e36f7dd 100644 --- a/app/store/model/Goods.php +++ b/app/store/model/Goods.php @@ -1,13 +1,5 @@ -// +---------------------------------------------------------------------- + declare (strict_types=1); namespace app\store\model;