<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\CmsHelp\Admin\Controller; use ModStart\Core\Dao\ModelUtil; use ModStart\Core\Input\Response; use Module\CmsHelp\Core\CmsHelpSuperSearchBiz; use Module\Vendor\Provider\SuperSearch\Controller\AbstractAdminSuperSearchController; class SuperSearchController extends AbstractAdminSuperSearchController { public function index() { return $this->renderIndex(CmsHelpSuperSearchBiz::provider(), array('cms_help')); } public function sync($yzKqK, $dTMuU, $jMLrS) { switch ($dTMuU) { case 'cms_help': goto G0J_E; oH2kA: return Response::generateSuccessData($MGhSY); goto ZhsFM; sR5ku: $MGhSY['nextId'] = $om_hh['nextId']; goto oH2kA; G0J_E: $om_hh = ModelUtil::batch('cms_help', $jMLrS, 1000); goto I9HXz; kZMAj: $MGhSY = array(); goto dMGn4; I9HXz: CmsHelpSuperSearchBiz::syncUpsert($om_hh['records'], false); goto kZMAj; dMGn4: $MGhSY['count'] = count($om_hh['records']); goto sR5ku; ZhsFM: } return Response::send(-1, '请求错误'); } }