<?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($GUcFO) { goto CDhy1; CDhy1: static $wl0q8 = null; goto NYpIH; NYpIH: BizException::throwsIf('Meta信息不包含' . $GUcFO, !in_array($GUcFO, self::$supportKeys)); goto Tts2V; PDN0k: return '-'; goto g7T07; OXfo3: if (isset($wl0q8[$GUcFO])) { return $wl0q8[$GUcFO]; } goto wpP3F; wpP3F: switch ($GUcFO) { 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 PDN0k; Tts2V: if (null === $wl0q8) { goto F1Bac; kf7kr: if (file_exists($fWBvH)) { $wl0q8 = @json_decode(file_get_contents($fWBvH), true); } goto H_IdW; H_IdW: if (empty($wl0q8)) { $wl0q8 = array(); } goto rWHq7; F1Bac: $fWBvH = base_path('meta.json'); goto kf7kr; rWHq7: } goto OXfo3; g7T07: } }