移除不必要展示的系统信息 #26

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-10-24 14:44:52 +08:00
parent cff70dd58f
commit c1b148e095

View File

@ -86,7 +86,15 @@ class Index extends BasicApi
public function systemConfig()
{
$configModel = new SystemConfig();
$this->success('', $configModel->info());
$config = $configModel->info();
$info = [
'app_name' => $config['app_name'],
'app_version' => $config['app_version'],
'miitbeian' => $config['miitbeian'],
'site_copy' => $config['site_copy'],
'site_name' => $config['site_name'],
];
$this->success('', $info);
}