Browse Source

双十一活动

gorden 4 months ago
parent
commit
a44adefcd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/service/goods/GoodsService.php

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

@@ -567,7 +567,7 @@ class GoodsService
         $categorys = [];
         if (!empty($categoryIds)) {
             $categorys = SysCategory::whereIn('category_id', $categoryIds)
-                ->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')
                 ->orderBy('category_sort', 'DESC')
                 ->get()