|
|
|
@ -52,8 +52,8 @@ class Category extends Controller |
|
|
|
|
$hasGoods = GoodsCategoryRel::getcategory($this->storeId,$merchantId); |
|
|
|
|
$arr = []; |
|
|
|
|
$arr1 = []; |
|
|
|
|
if (isset($hasGoods['data']) && !empty($hasGoods['data'])) { |
|
|
|
|
foreach ($hasGoods['data'] as $v) { |
|
|
|
|
if (isset($hasGoods) && !empty($hasGoods)) { |
|
|
|
|
foreach ($hasGoods as $v) { |
|
|
|
|
$arr[] = $v['category_id']; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -61,7 +61,7 @@ class Category extends Controller |
|
|
|
|
if (!empty($arr)) { |
|
|
|
|
$arr1 = ['cataIds' => $arr]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$list = $model->getListPublic($this->request->param(), $arr1); |
|
|
|
|
$tmplist = []; |
|
|
|
|
foreach ($list as $kl => $l) { |
|
|
|
|