se { if ($_type == 'self') { //同级分类 $_pidarr = []; foreach ($_cidarr as $_k => $_v) { $_typeinfo = $_category->getSelf($_catlist, $_v); if ($_typeinfo) { $_pidarr[] = $_typeinfo['pid']; } } $_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_pidarr ? $_pidarr : 0); }else { //son,子类列表 $_catlist = $_category->unlimitedForLayer($_catlist, 'child', $_cidarr); } } } $_limit_list = explode(',', $_limit); foreach($_catlist as $autoindex => $catlist): if(count($_limit_list) > 1){ if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue; } else{ if($autoindex >= $_limit_list[0]) break; } $catlist = update_str_dq($catlist, session('sys_areainfo')); $cateparent = $catlist['pid'] != 0 ? $catlist['pid'] : $cateparent ;endforeach;endif; $navpid = $cateparent ? $cateparent : $cid;?>
">网站首页 getCategory('', $_typeid, true); $_navlist = $_category->unlimitedForLayer($_navlist); foreach($_navlist as $autoindex => $nav): $_limit_list = explode(',', $_limit); if(count($_limit_list) > 1){ if(($autoindex < $_limit_list[0]) || ($autoindex > $_limit_list[1])) continue; } else{ if($autoindex >= $_limit) break; } $navmainurl = $nav['catmainurl'] ? false : true; $nav['url'] = $_category->getCategoryUrl($nav, [] , $navmainurl); $nav = update_str_dq($nav, session('sys_areainfo')); ?>