作者 王智

222

... ... @@ -977,13 +977,12 @@ class Index extends Api
$CL_list1[$k]['id'] = $v['id'];
$CL_list[$k]['fid'] = $v['id'];
$CL_list[$k]['title'] = $v['class'];
}
foreach ($CL_list1 as $k => $v) {
// if ($k == 1) {
// break;
// }
$second_arr2[$k] = Db::name('class_con')->where(['class_ids' => $v['id']])->select();
if (!empty($second_arr2[$k])) {
foreach ($second_arr2[$k] as $k3 => $v3) {
$second_arr[$k] = $second_arr2[$k];
foreach ($second_arr[$k] as $k3 => $v3) {
$second_arr3[$k3]['xid'] = $v3['id'];
$second_arr3[$k3]['title'] = $v3['class_con'];
}
... ... @@ -992,7 +991,6 @@ class Index extends Api
}
}
}
}
print_r($CL_list);
die;
... ...