...
|
...
|
@@ -134,7 +134,10 @@ class Category extends Api |
|
|
foreach ($data['category2'] as $k=>$v){
|
|
|
$data['category3'][$k]['name'] = $v['name'];
|
|
|
$data['category3'][$k]['list'] = $this->categoryModel->selectData(['pid'=>$v['id']],null,$this->lang);
|
|
|
if (!$data['category3'][$k]['list']) unset($data['category2'][$k]);
|
|
|
if (!$data['category3'][$k]['list']){
|
|
|
unset($data['category2'][$k]);
|
|
|
unset($data['category3'][$k]);
|
|
|
}
|
|
|
}
|
|
|
$this->success('SUCCESS',$data);
|
|
|
}
|
...
|
...
|
|