= array(); foreach($_tmp as $_value){ $_extend[$_value['id']] = $_value; } } $_ids = array_unique(array_map('intval', array_column($callid06aeb110b69555, 'category_id'))); $_category = array(); $_data = M("Category")->field('id,title,template_index,path_index,template_lists,path_lists,path_detail,path_lists_index,rootid')->where(array('id' => array('IN', $_ids)))->select(); foreach($_data as $_value){ $_category[$_value['id']] = $_value; } foreach($callid06aeb110b69555 as $_key => $_value){ if(0){ if(isset($_extend[$_value['id']])){ $callid06aeb110b69555[$_key] = array_merge($_value, $_extend[$_value['id']]); } } $callid06aeb110b69555[$_key]['moduleid']= 2; $callid06aeb110b69555[$_key]['module'] = $_value['module'] = array ( 0 => 'Category', 1 => 'Document', 2 => 'DocumentArticle', ); $_value['path_detail'] = $_category[$_value['category_id']]['path_detail']; $_value['rootid'] = $_category[$_value['category_id']]['rootid']; if(!isset($_category[$_value['category_id']])){ unset($callid06aeb110b69555[$_key]); continue; } $callid06aeb110b69555[$_key]['typename'] = $_category[$_value['category_id']]['title']; $callid06aeb110b69555[$_key]['typeurl'] = parseModuleUrl($_category[$_value['category_id']]); $callid06aeb110b69555[$_key]['url'] = parseModuleUrl($_value); } $widget = A("Home/qilimobile", "Widget"); if(method_exists($widget, "classify")){ $callid06aeb110b69555 = call_user_func(array($widget, "classify"), $callid06aeb110b69555); } if(0){ $_int = implode(array_column($callid06aeb110b69555, 'id'), ','); } } $key = 0; } ?>