mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-11 18:32:50 +00:00
38 lines
706 B
PHP
38 lines
706 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @author: xaboy<365615158@qq.com>
|
|
* @day: 2017/11/23
|
|
*/
|
|
|
|
namespace service;
|
|
|
|
|
|
use app\admin\model\system\SystemConfig;
|
|
|
|
class SystemConfigService
|
|
{
|
|
protected static $configList = null;
|
|
|
|
public static function config($key)
|
|
{
|
|
if(self::$configList === null) self::$configList = self::getAll();
|
|
return isset(self::$configList[$key]) ? self::$configList[$key] : null;
|
|
}
|
|
|
|
public static function get($key)
|
|
{
|
|
return SystemConfig::getValue($key);
|
|
}
|
|
|
|
public static function more($keys)
|
|
{
|
|
return SystemConfig::getMore($keys);
|
|
}
|
|
|
|
public static function getAll()
|
|
{
|
|
return SystemConfig::getAllConfig()?:[];
|
|
}
|
|
|
|
} |