<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Admin\Config; class AdminConfig { private static $config = null; private static function init() { goto HDh0P; SZfWs: self::$config['founderId'] = config('env.ADMIN_FOUNDER_ID', 1); goto dsy4R; GZeCO: self::$config['demoId'] = config('env.ADMIN_DEMO_USER_ID', 0); goto SZfWs; HDh0P: self::$config = array(); goto GZeCO; dsy4R: } public static function set($rvTrU, $gwXrh) { if (null === self::$config) { self::init(); } self::$config[$rvTrU] = $gwXrh; } public static function get($rvTrU = null, $A0QpK = null) { goto v3Em_; v3Em_: if (null === self::$config) { self::init(); } goto MGYRg; mYovi: return $A0QpK; goto mI1g7; u1uIX: if (isset(self::$config[$rvTrU])) { return self::$config[$rvTrU]; } goto mYovi; MGYRg: if (null === $rvTrU) { return self::$config; } goto u1uIX; mI1g7: } }