作者 王智

222

... ... @@ -1006,19 +1006,31 @@ class Index extends Api
}
foreach ($LG_list1 as $k => $v) {
$fitst2[0] = Db::name('logo_class')->where(['logo_id' => $v['id']])->select();
if (!empty($fitst3)) {
$fitst3 = $this->three_arr($fitst2);
foreach ($fitst3 as $k1 => $v1) {
$fitst4[$k1] = Db::name('classa')->where(['id' => $v1['class_id']])->select();
$fitst5 = $this->three_arr($fitst4);
}
foreach ($fitst5 as $k3 => $v3) {
$fitst6[$k3]['xid'] = $v3['id'];
$fitst6[$k3]['title'] = $v3['class'];
}
foreach ($fitst6 as $k2 => $v2) {
$LG_list[$k]['IsList'] = $fitst6;
}
// if (!empty($fitst3)) {
// $fitst3 = $this->three_arr($fitst2);
// foreach ($fitst3 as $k1 => $v1) {
// $fitst4[$k1] = Db::name('classa')->where(['id' => $v1['class_id']])->select();
// $fitst5 = $this->three_arr($fitst4);
// }
// foreach ($fitst5 as $k3 => $v3) {
// $fitst6[$k3]['xid'] = $v3['id'];
// $fitst6[$k3]['title'] = $v3['class'];
// }
// foreach ($fitst6 as $k2 => $v2) {
// $LG_list[$k]['IsList'] = $fitst6;
// }
// }
$fitst3 = $this->three_arr($fitst2);
foreach ($fitst3 as $k1 => $v1) {
$fitst4[$k1] = Db::name('classa')->where(['id' => $v1['class_id']])->select();
$fitst5 = $this->three_arr($fitst4);
}
foreach ($fitst5 as $k3 => $v3) {
$fitst6[$k3]['xid'] = $v3['id'];
$fitst6[$k3]['title'] = $v3['class'];
}
foreach ($fitst6 as $k2 => $v2) {
$LG_list[$k]['IsList'] = $fitst6;
}
}
$MoList = array(
... ...