where('switch','1')->where('box_foot_images','neq','')->column('box_foot_images'); $arr = []; foreach ($list as $v){ if (strstr($v,',')) { $arr = array_merge($arr,explode(',',$v)); } else { $arr[] = $v; } } $this->success('查询成功',$arr); } }