<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Util; use ModStart\Core\Assets\AssetsUtil; use ModStart\Core\Input\Request; use ModStart\Core\Util\EnvUtil; use ModStart\Module\ModuleManager; class ApiUtil { public static function config() { goto IyEmq; tdlmT: $GpXwG = array(); goto vBYu6; cackH: $ZePzJ = config('data.upload'); goto X8cuB; IyEmq: $IRUR1 = modstart_config(); goto tdlmT; xMfqY: $GpXwG['dataUpload'] = array(); goto C1vRf; Vk72f: $GpXwG['payAlipayOn'] = $IRUR1->getBoolean('payAlipayOn'); goto GOZS0; ietr7: $GpXwG['modules'] = ModuleManager::listAllEnableModuleNames(); goto Vk72f; TTjba: $GpXwG['siteLogo'] = AssetsUtil::fixFull($IRUR1->get('siteLogo')); goto YHxjy; vBYu6: $GpXwG['siteBase'] = Request::domainUrl(); goto TTjba; bYAZg: $GpXwG['siteCDN'] = AssetsUtil::fixFull(AssetsUtil::cdn(), false); goto ietr7; RuChR: $GpXwG['payWechatOn'] = $IRUR1->getBoolean('payWechatOn'); goto zInAS; YHxjy: $GpXwG['siteName'] = $IRUR1->get('siteName'); goto wVzSO; wVzSO: $GpXwG['siteSlogan'] = $IRUR1->get('siteSlogan'); goto PsLTA; zInAS: $GpXwG['payMemberMoneyOn'] = $IRUR1->getBoolean('payMemberMoneyOn'); goto xMfqY; k2VLF: return $GpXwG; goto d7n5W; VjHtO: $GpXwG['siteFavIco'] = AssetsUtil::fixFull($IRUR1->get('siteFavIco')); goto WoMwP; PsLTA: $GpXwG['siteDomain'] = $IRUR1->get('siteDomain'); goto IdLnl; IdLnl: $GpXwG['siteKeywords'] = $IRUR1->get('siteKeywords'); goto vgu5a; X8cuB: foreach ($ZePzJ as $E1PcT => $EOP4H) { $GpXwG['dataUpload']['category'][$E1PcT] = array('maxSize' => $EOP4H['maxSize'], 'extensions' => $EOP4H['extensions']); } goto k2VLF; C1vRf: $GpXwG['dataUpload'] = array('chunkSize' => EnvUtil::env('uploadMaxSize'), 'category' => array()); goto cackH; WoMwP: $GpXwG['siteBeian'] = $IRUR1->get('siteBeian'); goto bYAZg; vgu5a: $GpXwG['siteDescription'] = $IRUR1->get('siteDescription'); goto VjHtO; GOZS0: $GpXwG['payAlipayWebOn'] = $IRUR1->getBoolean('payAlipayWebOn'); goto RuChR; d7n5W: } }