<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use ModStart\Core\Exception\BizException; class MetaUtil { private static $supportKeys = array('APP_NAME'); public static function get($l6tBV) { goto mmKz2; EMjPf: BizException::throwsIf('Meta信息不包含' . $l6tBV, !in_array($l6tBV, self::$supportKeys)); goto plgBS; gy3Qv: return '-'; goto Tgmlw; plgBS: if (null === $F7xox) { goto A3Pei; nim6h: if (file_exists($ypGny)) { $F7xox = @json_decode(file_get_contents($ypGny), true); } goto OBkWp; OBkWp: if (empty($F7xox)) { $F7xox = array(); } goto t97uH; A3Pei: $ypGny = base_path('meta.json'); goto nim6h; t97uH: } goto k1qtl; RhGNQ: switch ($l6tBV) { case 'APP_NAME': if (defined('\\App\\Constant\\AppConstant::APP_NAME')) { return \App\Constant\AppConstant::APP_NAME; } else { if (defined('\\App\\Constant\\AppConstant::APP')) { return \App\Constant\AppConstant::APP; } } return 'UnknownAppName'; } goto gy3Qv; k1qtl: if (isset($F7xox[$l6tBV])) { return $F7xox[$l6tBV]; } goto RhGNQ; mmKz2: static $F7xox = null; goto EMjPf; Tgmlw: } }