<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Provider\SuperSearch\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Request; use ModStart\Core\Input\Response; use Module\Vendor\Provider\SuperSearch\AbstractSuperSearchProvider; use Module\Vendor\Provider\SuperSearch\SuperSearchBiz; abstract class AbstractAdminSuperSearchController extends Controller { public function renderIndex($tcA2a, $oBZZW) { goto EwZ_v; lr_5y: return view('module::Vendor.View.superSearch.admin.index', array('provider' => $tcA2a, 'bizList' => $oBZZW)); goto ys2br; PAWrk: $oBZZW = array_filter($oBZZW); goto djb6I; djb6I: if (Request::isPost()) { goto GwF5D; TWh95: $pqym5 = $fAvwi->getTrimString('bucket'); goto Ze0Zo; Ze0Zo: $qpIAB = $fAvwi->getTrimString('action'); goto VRRUs; GwF5D: $fAvwi = InputPackage::buildFromInput(); goto TWh95; p0XGK: BizException::throwsIfEmpty('Bucket错误', $eV8cW); goto lt2ZG; lt2ZG: switch ($qpIAB) { case 'refresh': return Response::generateSuccessData(array('count' => $tcA2a->bucketCount($pqym5))); case 'sync': goto hMUJh; wLx7P: $q62oK['count'] = $oHb9_['count']; goto si9zy; r6arn: return Response::generateSuccessData($q62oK); goto luXKm; SGrlL: if (0 === $pnknI) { $tcA2a->bucketDelete($pqym5); $tcA2a->bucketCreate($pqym5, $eV8cW->fields()); } goto DOrvG; DOrvG: $oHb9_ = $eV8cW->syncBatch($tcA2a, $pnknI); goto WNu2j; si9zy: $q62oK['nextId'] = $oHb9_['nextId']; goto r6arn; WNu2j: $q62oK = array(); goto wLx7P; hMUJh: $pnknI = $fAvwi->getInteger('nextId', 0); goto SGrlL; luXKm: } goto XskRt; VRRUs: $eV8cW = SuperSearchBiz::get($pqym5); goto p0XGK; XskRt: } goto lr_5y; EwZ_v: $oBZZW = array_map(function ($eV8cW) { return SuperSearchBiz::get($eV8cW); }, $oBZZW); goto PAWrk; ys2br: } }