<?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($oMd7I, $imHUT) { goto j3dVN; rNYIO: return view('module::Vendor.View.superSearch.admin.index', array('provider' => $oMd7I, 'bizList' => $imHUT)); goto uExe2; j3dVN: $imHUT = array_map(function ($qhsmj) { return SuperSearchBiz::get($qhsmj); }, $imHUT); goto kkjB7; kkjB7: $imHUT = array_filter($imHUT); goto QOnJg; QOnJg: if (Request::isPost()) { goto QUwBj; GHNu9: $NhQtb = $WZ8dY->getTrimString('action'); goto Qkj6C; YdI2U: BizException::throwsIfEmpty('Bucket错误', $qhsmj); goto NDJi6; QUwBj: $WZ8dY = InputPackage::buildFromInput(); goto DIrnN; Qkj6C: $qhsmj = SuperSearchBiz::get($g8TiI); goto YdI2U; NDJi6: switch ($NhQtb) { case 'refresh': return Response::generateSuccessData(array('count' => $oMd7I->bucketCount($g8TiI))); case 'sync': goto Yrs5n; Sh2Ew: return Response::generateSuccessData($U8wjN); goto aUAY0; Yrs5n: $Useht = $WZ8dY->getInteger('nextId', 0); goto zRG2v; zRG2v: if (0 === $Useht) { $oMd7I->bucketDelete($g8TiI); $oMd7I->bucketCreate($g8TiI, $qhsmj->fields()); } goto aw2z0; tbELP: $U8wjN['count'] = $Tbn6c['count']; goto bpnnq; bpnnq: $U8wjN['nextId'] = $Tbn6c['nextId']; goto Sh2Ew; aw2z0: $Tbn6c = $qhsmj->syncBatch($oMd7I, $Useht); goto VroKl; VroKl: $U8wjN = array(); goto tbELP; aUAY0: } goto LD8Mz; DIrnN: $g8TiI = $WZ8dY->getTrimString('bucket'); goto GHNu9; LD8Mz: } goto rNYIO; uExe2: } }