diff --git a/app/store/model/Banner.php b/app/store/model/Banner.php index c8cbffbb..f95b9e4c 100644 --- a/app/store/model/Banner.php +++ b/app/store/model/Banner.php @@ -28,7 +28,7 @@ class Banner extends BannerModel */ public function getList(): \think\Paginator { - $data = $this->paginate(); + $data = $this->order(['sort' => 'asc', 'create_time' => 'desc'])->paginate(); return self::preload($data, ['image']); }