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