wesmiler 3 месяцев назад
Родитель
Сommit
845f59b46b
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/Http/Controllers/Api/v1/IndexController.php

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

@@ -47,7 +47,6 @@ class IndexController extends webApp
                     'withdraw_min' => ConfigService::make()->getConfigByCode('withdraw_min', 0),
                     'withdraw_fee' => ConfigService::make()->getConfigByCode('withdraw_fee', 0),
                     'notices' => NoticeService::make()->getRecommandList(),
-                    'menuList' => $this->getMenus($socialOpen)
                 ];
                 RedisService::set($cacheKey, $config, 3600);
             }
@@ -121,7 +120,7 @@ class IndexController extends webApp
                 $data['socials'] = SocialCircleService::make()->getIndexList();
             } else {
                 $data['notices'] = NoticeService::make()->getRecommandList();
-                $data['menuList'] = $this->getMenus();
+                $data['social_open'] = ConfigService::make()->getConfigByCode('social_open', 0);
             }
 
             return showJson(1010, true, $data);