正在显示
1 个修改的文件
包含
12 行增加
和
13 行删除
@@ -977,21 +977,20 @@ class Index extends Api | @@ -977,21 +977,20 @@ class Index extends Api | ||
977 | $CL_list1[$k]['id'] = $v['id']; | 977 | $CL_list1[$k]['id'] = $v['id']; |
978 | $CL_list[$k]['fid'] = $v['id']; | 978 | $CL_list[$k]['fid'] = $v['id']; |
979 | $CL_list[$k]['title'] = $v['class']; | 979 | $CL_list[$k]['title'] = $v['class']; |
980 | - foreach ($CL_list1 as $k1 => $v1) { | ||
981 | - $second_arr2[$k1] = Db::name('class_con')->where(['class_ids' => $v1['id']])->select(); | ||
982 | - if (!empty($second_arr2[$k1])) { | ||
983 | - $second_arr = $second_arr2[$k1]; | ||
984 | - } | ||
985 | - foreach ($second_arr as $k3 => $v3) { | ||
986 | - $second_arr3[$k3]['xid'] = $v3['id']; | ||
987 | - $second_arr3[$k3]['title'] = $v3['class_con']; | ||
988 | - } | ||
989 | - foreach ($second_arr3 as $k2 => $v2) { | ||
990 | - $CL_list[$k1]['IsList'] = $second_arr3; | ||
991 | - } | 980 | + } |
981 | + foreach ($CL_list1 as $k1 => $v1) { | ||
982 | + $second_arr2[$k1] = Db::name('class_con')->where(['class_ids' => $v1['id']])->select(); | ||
983 | + if (!empty($second_arr2[$k1])) { | ||
984 | + $second_arr = $second_arr2[$k1]; | ||
985 | + } | ||
986 | + foreach ($second_arr as $k3 => $v3) { | ||
987 | + $second_arr3[$k3]['xid'] = $v3['id']; | ||
988 | + $second_arr3[$k3]['title'] = $v3['class_con']; | ||
989 | + } | ||
990 | + foreach ($second_arr3 as $k2 => $v2) { | ||
991 | + $CL_list[$k1]['IsList'] = $second_arr3; | ||
992 | } | 992 | } |
993 | } | 993 | } |
994 | - | ||
995 | print_r($CL_list); | 994 | print_r($CL_list); |
996 | die; | 995 | die; |
997 | 996 |
-
请 注册 或 登录 后发表评论