调整品类推荐的价格从低到高排序
This commit is contained in:
parent
b984b12824
commit
cd775fc7aa
@ -683,8 +683,7 @@ class IndexLogic extends Logic
|
|||||||
['is_recommend', '=', 1] // 推荐商品
|
['is_recommend', '=', 1] // 推荐商品
|
||||||
];
|
];
|
||||||
$order = [
|
$order = [
|
||||||
'sales_actual' => 'desc', // 实际销量倒序
|
'min_price' => 'asc', // 价格排序
|
||||||
'id' => 'desc'
|
|
||||||
];
|
];
|
||||||
$set = null;
|
$set = null;
|
||||||
$where1 = [];
|
$where1 = [];
|
||||||
@ -712,7 +711,7 @@ class IndexLogic extends Logic
|
|||||||
->where($where1)
|
->where($where1)
|
||||||
->where($where)
|
->where($where)
|
||||||
->order($order)
|
->order($order)
|
||||||
->limit(3)
|
->limit(4)
|
||||||
->select()
|
->select()
|
||||||
->toArray();
|
->toArray();
|
||||||
$set_price_type = 0;
|
$set_price_type = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user