'focus', 'row' => 5]); foreach ($list as $index => $item) { $bannerList[] = ['image' => cdnurl($item['image'], true), 'url' => '/', 'title' => $item['title']]; } $tabList = [ ['id' => 0, 'title' => '全部'], ]; $channelList = Channel::where('status', 'normal') ->where('type', 'in', ['list']) ->field('id,parent_id,name,diyname') ->order('weigh desc,id desc') ->cache(false) ->select(); foreach ($channelList as $index => $item) { $tabList[] = ['id' => $item['id'], 'title' => $item['name']]; } $archivesList = Archives::getArchivesList([]); $data = [ 'bannerList' => $bannerList, 'tabList' => $tabList, 'archivesList' => $archivesList, ]; $this->success('', $data); } }