mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
完成账户管理;
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user