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);
             $type = request()->post('type',1);
             $position = request()->post('position',1);
             $position = request()->post('position',1);
             $data = [
             $data = [
-                // 公告
-                'notices' => NoticeService::make()->getRecommandList(),
-
                 // 轮播
                 // 轮播
                 'banners' => AdService::make()->getListByPosition($position),
                 'banners' => AdService::make()->getListByPosition($position),
             ];
             ];
 
 
             if($type==2){
             if($type==2){
                 $data['socials'] = SocialCircleService::make()->getIndexList();
                 $data['socials'] = SocialCircleService::make()->getIndexList();
+            }else{
+                $data['notices'] = NoticeService::make()->getRecommandList(),
             }
             }
             return showJson(1010, true, $data);
             return showJson(1010, true, $data);
         } catch (\Exception $exception) {
         } catch (\Exception $exception) {