...
|
...
|
@@ -64,6 +64,10 @@ class ClassModel |
|
|
'gender' => $genderArr[$k]), 'list')
|
|
|
);
|
|
|
|
|
|
if(!isset($val['sub'])) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
$subitem = array();
|
|
|
foreach ($val['sub'] as $value) {
|
|
|
$subitem = array();
|
...
|
...
|
@@ -126,6 +130,10 @@ class ClassModel |
|
|
foreach ($data as $item) {
|
|
|
$id = $item['category_id'];
|
|
|
$result['first'][$id] = $item['category_name'];
|
|
|
if (!isset($item['sub'])) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
foreach ($item['sub'] as $sub) {
|
|
|
$id = $sub['category_id'];
|
|
|
$result['second'][$id] = $sub['category_name'];
|
...
|
...
|
|