<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Banner\Api\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Assets\AssetsUtil; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Response; use Module\Banner\Util\BannerUtil; class BannerController extends Controller { public function get() { goto tFvAH; tFvAH: $Km8YS = InputPackage::buildFromInput(); goto EEoTU; dxCVO: $sT6YU = BannerUtil::listByPositionWithCache($zeOUe); goto uXNVt; pfAuO: return Response::generateSuccessData($sT6YU); goto pllWO; EEoTU: $zeOUe = $Km8YS->getTrimString('position'); goto dxCVO; uXNVt: foreach ($sT6YU as $KAKiA => $Iim2u) { $sT6YU[$KAKiA]['image'] = AssetsUtil::fixFull($Iim2u['image']); } goto pfAuO; pllWO: } }