商品搜索添加商品分类搜索

This commit is contained in:
wangxiaowei 2024-12-16 14:56:54 +08:00
parent a6407048b7
commit edaad48c93

@ -944,8 +944,8 @@ class GoodsLogic extends Logic
} else {
foreach ($category as &$v) {
$goods = Goods::where([['first_cate_id|second_cate_id|third_cate_id', 'like', '%' . $v['id'] . '%']])
->where($onSaleWhere)
$goods = Goods::where($onSaleWhere)
->where([['first_cate_id|second_cate_id|third_cate_id', 'like', '%' . $v['id'] . '%']])
->order('sort_weight asc, sort asc, id desc')
->select()
->toArray();