正在显示
1 个修改的文件
包含
11 行增加
和
13 行删除
@@ -977,19 +977,17 @@ class Index extends Api | @@ -977,19 +977,17 @@ 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 $k => $v) { | ||
981 | -// if ($k == 1) { | ||
982 | -// break; | ||
983 | -// } | ||
984 | - $second_arr2[$k] = Db::name('class_con')->where(['class_ids' => $v['id']])->select(); | ||
985 | - if (!empty($second_arr2[$k])) { | ||
986 | - foreach ($second_arr2[$k] 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[$k]['IsList'] = $second_arr3; | ||
992 | - } | 980 | + } |
981 | + foreach ($CL_list1 as $k => $v) { | ||
982 | + $second_arr2[$k] = Db::name('class_con')->where(['class_ids' => $v['id']])->select(); | ||
983 | + if (!empty($second_arr2[$k])) { | ||
984 | + $second_arr[$k] = $second_arr2[$k]; | ||
985 | + foreach ($second_arr[$k] 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[$k]['IsList'] = $second_arr3; | ||
993 | } | 991 | } |
994 | } | 992 | } |
995 | } | 993 | } |
-
请 注册 或 登录 后发表评论