...
|
...
|
@@ -977,27 +977,22 @@ 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 $k1 => $v1) {
|
|
|
$second_arr2[0] = Db::name('class_con')->where(['class_ids' => $v1['id']])->select();
|
|
|
if (!empty($second_arr2[0])) {
|
|
|
echo '1';
|
|
|
// $second_arr = $second_arr2[0];
|
|
|
print_r($second_arr2[0]);
|
|
|
// foreach ($second_arr as $k1 => $v1) {
|
|
|
// $second_arr3[$k]['xid'] = $v1['id'];
|
|
|
// $second_arr3[$k]['title'] = $v1['class_con'];
|
|
|
// }
|
|
|
// foreach ($second_arr3 as $k3 => $v3) {
|
|
|
// $CL_list[$k1]['IsList'] = $second_arr3;
|
|
|
// }
|
|
|
}
|
|
|
foreach ($CL_list1 as $k => $v) {
|
|
|
$second_arr2[$k] = Db::name('class_con')->where(['class_ids' => $v['id']])->select();
|
|
|
if (!empty($second_arr2[$k])) {
|
|
|
$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'];
|
|
|
}
|
|
|
foreach ($second_arr3 as $k2 => $v2) {
|
|
|
$CL_list[$k]['IsList'] = $second_arr3;
|
|
|
}
|
|
|
if ($k == 2) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// print_r($second_arr);
|
|
|
print_r($CL_list);
|
|
|
die;
|
|
|
|
|
|
foreach ($logo as $k => $v) {
|
...
|
...
|
|