|
|
@@ -63,15 +63,14 @@ class IndexController extends webApp
|
|
|
$type = request()->post('type',1);
|
|
|
$position = request()->post('position',1);
|
|
|
$data = [
|
|
|
- // 公告
|
|
|
- 'notices' => NoticeService::make()->getRecommandList(),
|
|
|
-
|
|
|
// 轮播
|
|
|
'banners' => AdService::make()->getListByPosition($position),
|
|
|
];
|
|
|
|
|
|
if($type==2){
|
|
|
$data['socials'] = SocialCircleService::make()->getIndexList();
|
|
|
+ }else{
|
|
|
+ $data['notices'] = NoticeService::make()->getRecommandList(),
|
|
|
}
|
|
|
return showJson(1010, true, $data);
|
|
|
} catch (\Exception $exception) {
|