|
@@ -29,7 +29,7 @@ class FirstPageController extends CatchController
|
|
return $query->where('miniprogram_type', $miniprogramType);
|
|
return $query->where('miniprogram_type', $miniprogramType);
|
|
})->when($firstPageListType, function ($query, $firstPageListType){
|
|
})->when($firstPageListType, function ($query, $firstPageListType){
|
|
return $query->where('type', $firstPageListType);
|
|
return $query->where('type', $firstPageListType);
|
|
- })
|
|
|
|
|
|
+ })->orderBy('status', 'desc')
|
|
->orderBy('id', 'desc')
|
|
->orderBy('id', 'desc')
|
|
->paginate($request->input('limit', 15));
|
|
->paginate($request->input('limit', 15));
|
|
foreach ($result as $item) {
|
|
foreach ($result as $item) {
|