作者 王智

222

... ... @@ -1007,21 +1007,23 @@ class Index extends Api
}
foreach ($LG_list1 as $k => $v) {
$fitst2[$k] = Db::name('logo_class')->where(['logo_id' => $v['id']])->select();
// $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($fitst2[$k])){
$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;
}
}
}
print_r($fitst2);
die;
// print_r($fitst2);
// die;
$MoList = array(
array(
'id' => 1,
... ...