|
|
@ -28,7 +28,7 @@ class Banner extends BannerModel |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getList(): \think\Paginator |
|
|
|
public function getList(): \think\Paginator |
|
|
|
{ |
|
|
|
{ |
|
|
|
$data = $this->order(['sort' => 'asc', 'create_time' => 'desc'])->paginate(); |
|
|
|
$data = $this->with(['activeInfo'])->order(['sort' => 'asc', 'create_time' => 'desc'])->paginate(); |
|
|
|
return self::preload($data, ['image']); |
|
|
|
return self::preload($data, ['image']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|