wesmiler пре 5 месеци
родитељ
комит
62fc1c9921
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      app/Http/Controllers/Api/v1/IndexController.php

+ 2 - 3
app/Http/Controllers/Api/v1/IndexController.php

@@ -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) {