From 029708739c36b0a8c5173eb4d896ce2014928514 Mon Sep 17 00:00:00 2001 From: liapples Date: Fri, 23 Jul 2021 11:35:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8E=9F=E6=9D=A5=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8=E7=9A=84=E6=96=B9=E6=B3=95=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=BB=A3=E7=90=86=E5=95=86=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Api/ProductController.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/Http/Controllers/Api/ProductController.php b/app/Http/Controllers/Api/ProductController.php index c99563d..db45fe8 100644 --- a/app/Http/Controllers/Api/ProductController.php +++ b/app/Http/Controllers/Api/ProductController.php @@ -11,24 +11,5 @@ use App\Models\Product; */ class ProductController extends Controller { - // 产品列表 - public function index() - { - $list = Product::select(['title', 'price', 'original_price', 'pictures', 'sales'])->simplePaginate(); - return $this->success($list); - } - // 人气爆款 - public function hot() - { - $list = Product::get(['title', 'price', 'original_price', 'pictures', 'sales']); - return $this->success($list); - } - - // 猜你喜欢 - public function guessLike() - { - $list = Product::get(['title', 'price', 'original_price', 'pictures', 'sales']); - return $this->success($list); - } }