<?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($yzKqK, $XD6Aw) { goto ZYWLE; fsPlt: return view('module::Vendor.View.superSearch.admin.index', array('provider' => $yzKqK, 'bizList' => $XD6Aw)); goto MgGRh; iDPj9: $XD6Aw = array_filter($XD6Aw); goto lnall; lnall: if (Request::isPost()) { goto bU_Mx; bU_Mx: $Q9nmo = InputPackage::buildFromInput(); goto Qwgkt; l59zI: switch ($qSSx_) { case 'refresh': return Response::generateSuccessData(array('count' => $yzKqK->bucketCount($dTMuU))); case 'sync': goto OSWsh; OSWsh: $jMLrS = $Q9nmo->getInteger('nextId', 0); goto LUdVb; LerVI: $MGhSY = array(); goto stGWc; E3O9U: $om_hh = $X1NGK->syncBatch($yzKqK, $jMLrS); goto LerVI; y4W98: $MGhSY['nextId'] = $om_hh['nextId']; goto WN971; LUdVb: if (0 === $jMLrS) { $yzKqK->bucketDelete($dTMuU); $yzKqK->bucketCreate($dTMuU, $X1NGK->fields()); } goto E3O9U; WN971: return Response::generateSuccessData($MGhSY); goto kL8b1; stGWc: $MGhSY['count'] = $om_hh['count']; goto y4W98; kL8b1: } goto rrGzu; Qwgkt: $dTMuU = $Q9nmo->getTrimString('bucket'); goto vppz9; vppz9: $qSSx_ = $Q9nmo->getTrimString('action'); goto u1ZIU; u1ZIU: $X1NGK = SuperSearchBiz::get($dTMuU); goto o4Rb3; o4Rb3: BizException::throwsIfEmpty('Bucket错误', $X1NGK); goto l59zI; rrGzu: } goto fsPlt; ZYWLE: $XD6Aw = array_map(function ($X1NGK) { return SuperSearchBiz::get($X1NGK); }, $XD6Aw); goto iDPj9; MgGRh: } }