替换为:$orwheres[] = " arc.typeid in ($typeid) ";
查找大概303行$vicewheres = "";foreach($typeid as $tid){$liketypeid2 = ",".$tid.",";$vicewheres.= " or CONCAT(',',arc.typeid2,',') like '%$liketypeid2%' ";}if($vicewheres!="")$orwheres[] = " (arc.typeid in ($typeid) $vicewheres) ";else$orwheres[] = " arc.typeid in ($typeid) ";
替换为$CrossID=='') $orwheres[] = ' arc.typeid in ('.GetSonIds($typeid).')';else $orwheres[] = ' arc.typeid in ('.GetSonIds($typeid).','.$CrossID.')';
//副栏目处理$vicewheres = "";$typeids = explode(",",GetSonIds($typeid));$crossids = explode(",",$CrossID);$typeidss = array_merge($typeids,$crossids);$typeidss = array_unique($typeidss);foreach($typeidss as $tid){$liketypeid2 = ",".$tid.",";$vicewheres.= " or CONCAT(',',arc.typeid2,',') like '%$liketypeid2%' ";}if($CrossID==''){if($vicewheres!="")$orwheres[] = ' (arc.typeid in ('.GetSonIds($typeid).') '.$vicewheres.') ';else$orwheres[] = ' arc.typeid in ('.GetSonIds($typeid).') ';}else{if($vicewheres!="")$orwheres[] = ' (arc.typeid in ('.GetSonIds($typeid).','.$CrossID.') '.$vicewheres.') ';else$orwheres[] = ' arc.typeid in ('.GetSonIds($typeid).','.$CrossID.') ';}