wesmiler hai 6 meses
pai
achega
ed6caf04f4
Modificáronse 2 ficheiros con 18 adicións e 10 borrados
  1. 4 3
      app/Http/Controllers/Api/v1/IndexController.php
  2. 14 7
      config/platform.php

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

@@ -36,7 +36,6 @@ class IndexController extends webApp
                     'app_version' => ConfigService::make()->getConfigByCode('app_version'),
                     'wxpay_open' => ConfigService::make()->getConfigByCode('wxpay_open', 1),
                     'kfUrl' => ConfigService::make()->getConfigByCode('wechat_kf_url', ''),
-                    'notices' => NoticeService::make()->getRecommandList(),
                 ];
                 RedisService::set($cacheKey, $config, 3600);
             }
@@ -55,10 +54,12 @@ class IndexController extends webApp
     public function data()
     {
         $data = [
-            // 线上课程
+            // 菜单
             'menuList' => config('platform.menuList'),
+            // 公告
+            'notices' => NoticeService::make()->getRecommandList(),
+            // 线上课程
             'courses' => [],
-            'articles' => [],
         ];
         return showJson(1010, true, $data);
     }

+ 14 - 7
config/platform.php

@@ -6,37 +6,44 @@ return [
         "code" => 'day-training',
         'page' => '/pages/exam/training'
     ],
-    ["id" => 2,
+    [
+        "id" => 2,
         "name" => '历年真题',
         "code" => 'past-paper',
         'page' => '/pages/exam/past_paper'
     ],
-    ["id" => 3,
+    [
+        "id" => 3,
         "name" => '模拟试题',
         "code" => 'mock-paper',
         'page' => '/pages/exam/mock_paper'
     ],
-    ["id" => 98,
+    [
+        "id" => 98,
         "name" => '智能问答',
         "code" => 'intelligent-answer',
         'page' => '/pages/custom/intelligent'
     ],
-    ["id" => 5,
+    [
+        "id" => 5,
         "name" => '复习资料',
         "code" => 'review-materials',
         'page' => '/pages/exam/review'
     ],
-    ["id" => 4,
+    [
+        "id" => 4,
         "name" => '模拟考试',
         "code" => 'mock-exam',
         'page' => '/pages/exam/past_paper'
     ],
-    ["id" => 2,
+    [
+        "id" => 2,
         "name" => '考前冲刺',
         "code" => 'exam-sprint',
         'page' => '/pages/exam/sprint'
     ],
-    ["id" => 99,
+    [
+        "id" => 99,
         "name" => '院校直达',
         "code" => 'institution-entry',
         'page' => 'http://www.baidu.com'