Ver Fonte

双十一活动

gorden há 4 meses atrás
pai
commit
00bcd258a3
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      app/admin/service/goods/GoodsService.php

+ 2 - 2
app/admin/service/goods/GoodsService.php

@@ -575,7 +575,7 @@ class GoodsService
             $data = array_merge($data, $categorys);
             $data = array_merge($data, $categorys);
         } else if (!empty($categorySuperId)) {
         } else if (!empty($categorySuperId)) {
             $categorys = SysCategory::where('category_super_id', $categorySuperId)
             $categorys = SysCategory::where('category_super_id', $categorySuperId)
-                ->where('category_status', 'ACTIVED')
+                ->whereIn('category_status', ['ACTIVED','UNSHOW'])
                 ->select('category_id as id', 'category_name as name', 'category_super_id as pid', 'category_super_path')
                 ->select('category_id as id', 'category_name as name', 'category_super_id as pid', 'category_super_path')
                 ->orderBy('category_sort', 'DESC')
                 ->orderBy('category_sort', 'DESC')
                 ->get()
                 ->get()
@@ -588,7 +588,7 @@ class GoodsService
             $category['category_super_path'] = '#' . $category['id'] . '#';
             $category['category_super_path'] = '#' . $category['id'] . '#';
             // }
             // }
             $subCategory = SysCategory::where('category_super_path', 'like', '%' . $category['category_super_path'] . '%')
             $subCategory = SysCategory::where('category_super_path', 'like', '%' . $category['category_super_path'] . '%')
-                ->where('category_status', 'ACTIVED')
+                ->whereIn('category_status', ['ACTIVED','UNSHOW'])
                 ->select('category_id as id', 'category_name as name', 'category_super_id as pid', 'category_super_path')
                 ->select('category_id as id', 'category_name as name', 'category_super_id as pid', 'category_super_path')
                 ->orderBy('category_sort', 'DESC')
                 ->orderBy('category_sort', 'DESC')
                 ->get()
                 ->get()