Browse Source

增值包组件

gorden 4 months ago
parent
commit
4767204ecb
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

@@ -82,7 +82,7 @@ class GoodsService
                 $item['category_super_path'] = $item['category_super_path'] . '#' . $item['category_id'] . '#';
                 $item['category_super_path'] = $item['category_super_path'] . '#' . $item['category_id'] . '#';
             }
             }
 
 
-            $categoryIds = SysCategory::where('category_super_path', 'like', '%' . $item['category_super_path'])->pluck('category_id');
+            $categoryIds = SysCategory::where('category_super_path', 'like', '%' . $item['category_super_path'].'%')->pluck('category_id');
             dump($categoryIds);
             dump($categoryIds);
             $categoryIds = $categoryIds ? $categoryIds->toArray() : [];
             $categoryIds = $categoryIds ? $categoryIds->toArray() : [];
             $categorySuperIds = array_merge($categorySuperIds, $categoryIds);
             $categorySuperIds = array_merge($categorySuperIds, $categoryIds);