From eb9a266fbd0539b194fb52d6c8f6e20a8efdd9d2 Mon Sep 17 00:00:00 2001 From: weigang Date: Mon, 14 Sep 2020 11:37:46 +0800 Subject: [PATCH] =?UTF-8?q?banner=E3=80=81=E6=B4=BB=E5=8A=A8=E5=95=86?= =?UTF-8?q?=E5=93=81=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/ActivityService.php | 2 +- app/Service/v3/Implementations/BannerService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Service/v3/Implementations/ActivityService.php b/app/Service/v3/Implementations/ActivityService.php index 3eea246..381d737 100644 --- a/app/Service/v3/Implementations/ActivityService.php +++ b/app/Service/v3/Implementations/ActivityService.php @@ -34,6 +34,6 @@ class ActivityService implements ActivityServiceInterface ->orWhereJsonLength("market_ids", '=', 0); }); - return $builder->get()->toArray(); + return $builder->orderBy('sort', 'DESC')->get()->toArray(); } } \ No newline at end of file diff --git a/app/Service/v3/Implementations/BannerService.php b/app/Service/v3/Implementations/BannerService.php index cc340b1..2163158 100644 --- a/app/Service/v3/Implementations/BannerService.php +++ b/app/Service/v3/Implementations/BannerService.php @@ -16,6 +16,6 @@ class BannerService implements BannerServiceInterface ->orWhereJsonLength('market_ids', '=', 0); }); - return $builder->get()->toArray(); + return $builder->orderBy('sort', 'DESC')->get()->toArray(); } } \ No newline at end of file