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