$this->sjId, 'type' => 0, 'status' => 1, 'delStatus' => 0]; $adRespond = AdService::getAdList($where); $ad = []; if (isset($adRespond['list']) && !empty($adRespond['list'])) { foreach ($adRespond['list'] as $single) { $ad[] = ['adImg' => $single['adImgUrl'], 'url' => '']; } } $category = CategoryService::getTopThreeCategory($this->sjId); $categoryList = !empty($category) ? GoodsCategoryService::getAppointCategoryList($category) : []; $sj = $this->sj; $data = [ 'ad' => $ad, 'category' => $categoryList, 'columnStyle' => rand(1, 2), 'sj' => $sj ]; util::success($data); } }