作者 王智

222

... ... @@ -997,25 +997,26 @@ class Index extends Api
foreach ($class as $k => $v) {
if ($k > 1) {
break;
}
$CL_list1[$k]['id'] = $v['id'];
$CL_list[$k]['fid'] = $v['id'];
$CL_list[$k]['title'] = $v['class'];
}
foreach ($CL_list1 as $k1 => $v1) {
$second_arr2[$k1] = Db::name('class_con')->where(['class_ids' => $v1['id']])->select();
if (!empty($second_arr2[$k1])) {
$second_arr = $second_arr2[$k1];
foreach ($CL_list1 as $k1 => $v1) {
$second_arr2[$k1] = Db::name('class_con')->where(['class_ids' => $v1['id']])->select();
if (!empty($second_arr2[$k1])) {
$second_arr = $second_arr2[$k1];
}
foreach ($second_arr as $k3 => $v3) {
$second_arr3[$k3]['xid'] = $v3['id'];
$second_arr3[$k3]['title'] = $v3['class_con'];
}
}
foreach ($second_arr as $k3 => $v3) {
$second_arr3[$k3]['xid'] = $v3['id'];
$second_arr3[$k3]['title'] = $v3['class_con'];
foreach ($second_arr3 as $k2 => $v2) {
$CL_list[$k]['IsList'] = $second_arr3;
}
}
// print_r($second_arr3);
// die;
foreach ($second_arr3 as $k2 => $v2) {
$CL_list[$k]['IsList'] = $second_arr3;
}
print_r($CL_list);
die;
... ...