<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Admin\Config; class AdminConfig { private static $config = null; private static function init() { goto lxiUR; K8Dni: self::$config['founderId'] = config('env.ADMIN_FOUNDER_ID', 1); goto G41GO; lxiUR: self::$config = array(); goto kPqf3; kPqf3: self::$config['demoId'] = config('env.ADMIN_DEMO_USER_ID', 0); goto K8Dni; G41GO: } public static function set($jPfeB, $Gttsd) { if (null === self::$config) { self::init(); } self::$config[$jPfeB] = $Gttsd; } public static function get($jPfeB = null, $TCqsx = null) { goto Nr7Za; FRhxe: if (null === $jPfeB) { return self::$config; } goto HsNkn; HsNkn: if (isset(self::$config[$jPfeB])) { return self::$config[$jPfeB]; } goto xn6yT; xn6yT: return $TCqsx; goto vdGCz; Nr7Za: if (null === self::$config) { self::init(); } goto FRhxe; vdGCz: } }