|
|
@@ -59,6 +59,7 @@ class IndexController extends webApp
|
|
|
public function data()
|
|
|
{
|
|
|
try {
|
|
|
+ $type = request()->post('type',1);
|
|
|
$position = request()->post('position',1);
|
|
|
$data = [
|
|
|
// 公告
|
|
|
@@ -67,6 +68,10 @@ class IndexController extends webApp
|
|
|
// 轮播
|
|
|
'banners' => AdService::make()->getListByPosition($position),
|
|
|
];
|
|
|
+
|
|
|
+ if($type==2){
|
|
|
+ $data['socials'] = SocialS
|
|
|
+ }
|
|
|
return showJson(1010, true, $data);
|
|
|
} catch (\Exception $exception) {
|
|
|
$error = ['data' => $exception->getTrace(), 'err' => $exception->getMessage()];
|