正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -978,11 +978,11 @@ class Index extends Api | @@ -978,11 +978,11 @@ class Index extends Api | ||
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) { | 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[0] = $second_arr2[$k1]; | 981 | + $second_arr2[0] = Db::name('class_con')->where(['class_ids' => $v1['id']])->select(); |
982 | + if (!empty($second_arr2[0])) { | ||
983 | + $second_arr = $second_arr2[0]; | ||
984 | } | 984 | } |
985 | - print_r($second_arr[0]); | 985 | + print_r($second_arr); |
986 | // foreach ($second_arr as $k3 => $v3) { | 986 | // foreach ($second_arr as $k3 => $v3) { |
987 | // $second_arr3[$k3]['xid'] = $v3['id']; | 987 | // $second_arr3[$k3]['xid'] = $v3['id']; |
988 | // $second_arr3[$k3]['title'] = $v3['class_con']; | 988 | // $second_arr3[$k3]['title'] = $v3['class_con']; |
-
请 注册 或 登录 后发表评论