<?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($tDnAb, $owP7x) { goto gMtK0; pPPbS: $owP7x = array_filter($owP7x); goto JlAUQ; Ukia2: return view('module::Vendor.View.superSearch.admin.index', array('provider' => $tDnAb, 'bizList' => $owP7x)); goto RnjWA; gMtK0: $owP7x = array_map(function ($g16tm) { return SuperSearchBiz::get($g16tm); }, $owP7x); goto pPPbS; JlAUQ: if (Request::isPost()) { goto v61lq; v61lq: $Km8YS = InputPackage::buildFromInput(); goto SgDCx; fCPWy: $O2USQ = $Km8YS->getTrimString('action'); goto scoSo; SgDCx: $qF774 = $Km8YS->getTrimString('bucket'); goto fCPWy; PotQC: switch ($O2USQ) { case 'refresh': return Response::generateSuccessData(array('count' => $tDnAb->bucketCount($qF774))); case 'sync': goto w2Fcw; Lk8X1: $avcnU = array(); goto BrJFg; t41aR: return Response::generateSuccessData($avcnU); goto en_5m; BrJFg: $avcnU['count'] = $rhLXE['count']; goto qPdYX; wsMul: $rhLXE = $g16tm->syncBatch($tDnAb, $h91v1); goto Lk8X1; qPdYX: $avcnU['nextId'] = $rhLXE['nextId']; goto t41aR; FUAXp: if (0 === $h91v1) { $tDnAb->bucketDelete($qF774); $tDnAb->bucketCreate($qF774, $g16tm->fields()); } goto wsMul; w2Fcw: $h91v1 = $Km8YS->getInteger('nextId', 0); goto FUAXp; en_5m: } goto wzsCX; scoSo: $g16tm = SuperSearchBiz::get($qF774); goto nriTN; nriTN: BizException::throwsIfEmpty('Bucket错误', $g16tm); goto PotQC; wzsCX: } goto Ukia2; RnjWA: } }