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