微调
This commit is contained in:
@@ -40,7 +40,7 @@ class CategoryController extends Controller
|
||||
|
||||
if ($category->id == 74) {
|
||||
$categories = Category::get();
|
||||
$cate_ids = getAllChild($categories, $category->id);
|
||||
$cate_ids = array_merge([$category->id], getAllChild($categories, $category->id));
|
||||
} else {
|
||||
$cate_ids = Category::where('parent_id', $category->id)
|
||||
->orWhere('id', $category->id)
|
||||
|
||||
Reference in New Issue
Block a user