<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Res\Core; use ModStart\Core\Dao\ModelUtil; use ModStart\Core\Util\TagUtil; use Module\Res\Util\UrlUtil; use Module\TagManager\Biz\AbstractTagManagerBiz; class ResTagManagerBiz extends AbstractTagManagerBiz { const NAME = 'res'; public function name() { return self::NAME; } public function title() { return '资源'; } public function searchUrl($zJULx) { return UrlUtil::search($zJULx); } public function syncBatch($Useht) { goto YHJUi; YHJUi: $vsyJ8 = ModelUtil::batch('res_asset', $Useht, 100); goto SSVcD; Kc5XO: foreach ($vsyJ8['records'] as $lpVAI) { $K3hlK = array_merge($K3hlK, $lpVAI['tags']); } goto Thex7; XMena: $U8wjN['finish'] = empty($vsyJ8['records']); goto IzOwt; QWu0k: $U8wjN['nextId'] = $vsyJ8['nextId']; goto NZARv; IzOwt: return $U8wjN; goto JdRNm; SSVcD: TagUtil::recordsString2Array($vsyJ8['records'], array('tags')); goto qTXNL; qTXNL: $K3hlK = array(); goto Kc5XO; Thex7: $U8wjN = array(); goto QWu0k; NZARv: $U8wjN['tags'] = $K3hlK; goto XMena; JdRNm: } }