品牌推荐

This commit is contained in:
2025-09-17 14:15:09 +08:00
parent a2518025f6
commit 3ef45a24c7
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']);
}
}