|
|
@@ -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);
|
|
|
}
|