完成账户管理;

This commit is contained in:
augushong
2019-08-23 13:35:14 +08:00
parent d60bf60786
commit 77abc59125
12 changed files with 323 additions and 8 deletions

View File

@@ -33,15 +33,20 @@ function json_message($data = [],$code = 0,$msg = '')
]);
}
function get_system_config($name,$default = '')
function get_system_config($name = '',$default = '')
{
$list = Cache::get('system_config');
if(empty($list)){
$list = SystemConfig::column('value','name');
}
if($name === ''){
return $list;
}
if(isset($list[$name])){
return $list[$name];
}