优化商品类目搜索
This commit is contained in:
parent
16602ce9c6
commit
80bd747584
@ -943,11 +943,9 @@ class GoodsLogic extends Logic
|
||||
);
|
||||
foreach ($category as &$v) {
|
||||
$goods[] = Goods::where($onSaleWhere)
|
||||
->where([
|
||||
[$con[$v['level']], 'like', '%' . $v['id'] . '%'],
|
||||
])->order('sort_weight asc, sort asc, id desc')
|
||||
->where([$con[$v['level']] => $v['id']])
|
||||
->order('sort_weight asc, sort asc, id desc')
|
||||
->field('id, name')
|
||||
->limit(20)
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user