Merge branch 'master' of http://git.yuzhankeji.cn/xuanchen/new_haai
This commit is contained in:
@@ -40,7 +40,7 @@ class CategoryController extends Controller
|
|||||||
|
|
||||||
if ($category->id == 74) {
|
if ($category->id == 74) {
|
||||||
$categories = Category::get();
|
$categories = Category::get();
|
||||||
$cate_ids = getAllChild($categories, $category->id);
|
$cate_ids = array_merge([$category->id], getAllChild($categories, $category->id));
|
||||||
} else {
|
} else {
|
||||||
$cate_ids = Category::where('parent_id', $category->id)
|
$cate_ids = Category::where('parent_id', $category->id)
|
||||||
->orWhere('id', $category->id)
|
->orWhere('id', $category->id)
|
||||||
|
|||||||
Reference in New Issue
Block a user