|
|
@ -52,8 +52,8 @@ class Category extends Controller |
|
|
|
$hasGoods = GoodsCategoryRel::getcategory($this->storeId,$merchantId); |
|
|
|
$hasGoods = GoodsCategoryRel::getcategory($this->storeId,$merchantId); |
|
|
|
$arr = []; |
|
|
|
$arr = []; |
|
|
|
$arr1 = []; |
|
|
|
$arr1 = []; |
|
|
|
if (isset($hasGoods['data']) && !empty($hasGoods['data'])) { |
|
|
|
if (isset($hasGoods) && !empty($hasGoods)) { |
|
|
|
foreach ($hasGoods['data'] as $v) { |
|
|
|
foreach ($hasGoods as $v) { |
|
|
|
$arr[] = $v['category_id']; |
|
|
|
$arr[] = $v['category_id']; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|