作者 王智

222

@@ -985,12 +985,11 @@ class Index extends Api @@ -985,12 +985,11 @@ class Index extends Api
985 $second_arr[$k] = $second_arr2[$k]; 985 $second_arr[$k] = $second_arr2[$k];
986 } 986 }
987 } 987 }
988 -// foreach ($second_arr as $k3 => $v3) {  
989 -// if (!empty($v3)) {  
990 -// $second_arr3[$k3]['xid'] = $v3['id'];  
991 -// $second_arr3[$k3]['title'] = $v3['class_con'];  
992 -// }  
993 -// } 988 + foreach ($second_arr as $k => $v) {
  989 + foreach ($v as $key => $value) {
  990 + $v[$key]['xid'] = $value['id'];
  991 + }
  992 + }
994 // foreach ($second_arr3 as $k2 => $v2) { 993 // foreach ($second_arr3 as $k2 => $v2) {
995 // $CL_list[$k]['IsList'] = $second_arr3; 994 // $CL_list[$k]['IsList'] = $second_arr3;
996 // } 995 // }