<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\HomePage; use ModStart\Core\Exception\BizException; use ModStart\Core\Util\AgentUtil; class HomePageProvider { private static $instances = array(DefaultHomePageProvider::class, DefaultMobileHomePageProvider::class); public static function register($tcA2a) { self::$instances[] = $tcA2a; } public static function registerQuick($BRqP6, $qpIAB, $mhYne = array(AbstractHomePageProvider::TYPE_PC, AbstractHomePageProvider::TYPE_MOBILE)) { self::register(QuickHomePageProvider::make($BRqP6, $qpIAB, $mhYne)); } public static function all() { foreach (self::$instances as $d2HEV => $hf0nR) { if ($hf0nR instanceof \Closure) { self::$instances[$d2HEV] = call_user_func($hf0nR); } else { if (is_string($hf0nR)) { self::$instances[$d2HEV] = app($hf0nR); } } } return self::$instances; } public static function call($RHinj, $F6fqd) { goto BA3vr; CvLeQ: list($R_07X, $P_pSY) = explode('@', $tb89m); goto in_tD; YkNXO: if (!starts_with($i0QRd, '\\')) { $i0QRd = '\\' . $i0QRd; } goto Mfofv; Mfofv: if ($i0QRd == $R_07X && $tj_qR == $P_pSY) { list($R_07X, $P_pSY) = explode('@', $F6fqd); } goto BE5Jn; zdNQW: if (empty($tb89m)) { $tb89m = $F6fqd; } goto uTAAT; dKxn8: if (modstart_config('HomePage_Enable', false)) { if (AgentUtil::isMobile()) { $tb89m = modstart_config('HomePage_HomeMobile'); } if (empty($tb89m)) { $tb89m = modstart_config('HomePage_Home'); } } goto zdNQW; BE5Jn: $R_07X = app($R_07X); goto hMTTB; hMTTB: return app()->call(array($R_07X, $P_pSY)); goto WsGG_; BA3vr: $tb89m = null; goto dKxn8; in_tD: list($i0QRd, $tj_qR) = explode('::', $RHinj); goto YkNXO; uTAAT: BizException::throwsIfEmpty('首页不存在', $tb89m); goto CvLeQ; WsGG_: } }