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