...
|
...
|
@@ -972,28 +972,20 @@ class Index extends Api |
|
|
{
|
|
|
$class = Db::name('classa')->select();
|
|
|
$logo = Db::name('logo')->select();
|
|
|
print_r($logo);
|
|
|
die;
|
|
|
foreach ($class as $k => $v) {
|
|
|
$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 ($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[$k1]['IsList'] = $second_arr3;
|
|
|
$second_arr2 = Db::name('class_con')->where(['class_ids' => $v['id']])->select();
|
|
|
if (!empty($second_arr2)) {
|
|
|
foreach ($second_arr2 as $k3 => $v3) {
|
|
|
$CL_list[$k]['IsList'][$k3]['xid'] = $v3['id'];
|
|
|
$CL_list[$k]['IsList'][$k3]['title'] = $v3['class_con'];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
foreach ($logo as $k => $v) {
|
|
|
$LG_list1[$k]['id'] = $v['id'];
|
|
|
$LG_list[$k]['fid'] = $v['id'];
|
...
|
...
|
@@ -1008,7 +1000,7 @@ class Index extends Api |
|
|
}
|
|
|
foreach ($LG_list1 as $k => $v) {
|
|
|
$fitst2[$k] = Db::name('logo_class')->where(['logo_id' => $v['id']])->select();
|
|
|
if(!empty($fitst2[$k])){
|
|
|
if (!empty($fitst2[$k])) {
|
|
|
$fitst3 = $this->three_arr($fitst2);
|
|
|
foreach ($fitst3 as $k1 => $v1) {
|
|
|
$fitst4[$k1] = Db::name('classa')->where(['id' => $v1['class_id']])->select();
|
...
|
...
|
|