Merge branch 'hotfix/series' into develop
This commit is contained in:
@@ -43,6 +43,7 @@ class BrandService
|
||||
switch ($scene) {
|
||||
case 'index':
|
||||
// ====== ====== 排序 ====== ======
|
||||
$config['order']['hot'] = 'desc';
|
||||
$config['order']['sort'] = 'desc';
|
||||
$config['order']['id'] = 'desc';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class BrandLogic
|
||||
|
||||
public function getList()
|
||||
{
|
||||
return Brand::where('status', 1)->orderBy('sort','desc')->get(['id', 'brand_code', 'brand_name', 'logo', 'description']);
|
||||
return Brand::where('status', 1)->orderBy('hot','desc')->orderBy('sort','desc')->get(['id', 'brand_code', 'brand_name', 'logo', 'description']);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -253,6 +253,7 @@ Route::group('/admin', function () {
|
||||
Route::any('/show', [app\admin\controller\BrandController::class, 'show']);
|
||||
Route::any('/store', [app\admin\controller\BrandController::class, 'store']);
|
||||
Route::any('/update', [app\admin\controller\BrandController::class, 'update']);
|
||||
Route::any('/hot', [app\admin\controller\BrandController::class, 'update']);
|
||||
Route::any('/destroy', [app\admin\controller\BrandController::class, 'destroy']);
|
||||
// 车系
|
||||
Route::group('/series', function () {
|
||||
|
||||
Reference in New Issue
Block a user