作者 王智

222

... ... @@ -978,10 +978,10 @@ class Index extends Api
$CL_list[$k]['fid'] = $v['id'];
$CL_list[$k]['title'] = $v['class'];
foreach ($CL_list1 as $k1 => $v1) {
$second_arr2[$k1] = Db::name('class_con')->where(['class_ids' => $v1['id']])->select();
if (!empty($second_arr2[$k1])) {
$second_arr2[0] = Db::name('class_con')->where(['class_ids' => $v1['id']])->select();
if (!empty($second_arr2[0])) {
echo '1';
// $second_arr = $second_arr2[$k1];
// $second_arr = $second_arr2[0];
// print_r($second_arr);
// foreach ($second_arr as $k1 => $v1) {
// $second_arr3[$k]['xid'] = $v1['id'];
... ...