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