<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Admin\Config; class AdminConfig { private static $config = null; private static function init() { goto i3OZ1; F20bq: self::$config['founderId'] = config('env.ADMIN_FOUNDER_ID', 1); goto xp5Dm; Mhv1J: self::$config['demoId'] = config('env.ADMIN_DEMO_USER_ID', 0); goto F20bq; i3OZ1: self::$config = array(); goto Mhv1J; xp5Dm: } public static function set($oMJcb, $cBDsM) { if (null === self::$config) { self::init(); } self::$config[$oMJcb] = $cBDsM; } public static function get($oMJcb = null, $Rethz = null) { goto yrmCK; Gq9Um: return $Rethz; goto w3vce; Jloym: if (isset(self::$config[$oMJcb])) { return self::$config[$oMJcb]; } goto Gq9Um; yrmCK: if (null === self::$config) { self::init(); } goto Hn6pu; Hn6pu: if (null === $oMJcb) { return self::$config; } goto Jloym; w3vce: } }