Merge branch 'hotfix/series' into develop

This commit is contained in:
2025-09-17 14:15:37 +08:00
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -43,6 +43,7 @@ class BrandService
switch ($scene) {
case 'index':
// ====== ====== 排序 ====== ======
$config['order']['hot'] = 'desc';
$config['order']['sort'] = 'desc';
$config['order']['id'] = 'desc';
+1 -1
View File
@@ -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']);
}
}
+1
View File
@@ -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 () {