From b992427e62662d31a9cbd28cd1760b5d5fb4be7c Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Sat, 5 Sep 2020 15:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=20banner?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/GoodsActivityService.php | 2 +- app/Service/v3/Implementations/GoodsService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Service/v3/Implementations/GoodsActivityService.php b/app/Service/v3/Implementations/GoodsActivityService.php index c83dfc1..9af1d6e 100644 --- a/app/Service/v3/Implementations/GoodsActivityService.php +++ b/app/Service/v3/Implementations/GoodsActivityService.php @@ -46,7 +46,7 @@ class GoodsActivityService implements GoodsActivityServiceInterface public function getBanner() { - $banner = GoodsActivityBanner::query()->where('goods_id',1572)->get(); + $banner = GoodsActivityBanner::query()->where('goods_id',1572)->orderByDesc('type')->get(); return $banner; } diff --git a/app/Service/v3/Implementations/GoodsService.php b/app/Service/v3/Implementations/GoodsService.php index 64bdd99..ad36b59 100644 --- a/app/Service/v3/Implementations/GoodsService.php +++ b/app/Service/v3/Implementations/GoodsService.php @@ -41,7 +41,7 @@ class GoodsService implements GoodsServiceInterface public function getBanner() { - $banner = GoodsBanner::query()->where('goods_id',1572)->get(); + $banner = GoodsBanner::query()->where('goods_id',1572)->orderByDesc('type')->get(); return $banner; }