feat: 修改了商品列表搜索功能

This commit is contained in:
mkm 2024-09-09 17:57:03 +08:00
parent 0214b50ca8
commit b65ab15e2a

View File

@ -95,10 +95,12 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa
if ($category_top != '') {
$cate_name = '/' . $category_top;
}
// $category_two=StoreCategory::where('id', $item['two_cate_id'])->value('name');
// if($category_two!=''){
// $cate_name=$cate_name.'/'.$category_two;
// }
if (!$category_top) {
$category_two = StoreCategory::where('id', $item['two_cate_id'])->value('name');
if ($category_two != '') {
$cate_name = $cate_name . '/' . $category_two;
}
}
$category_three = StoreCategory::where('id', $item['cate_id'])->value('name');
if ($category_three) {
$cate_name = $cate_name . '/' . $category_three;