if($CrossID=='')
//$orwheres[] = ' typeid in ('.GetSonIds($typeid).')';
$orwheres[] = ' typeid in ('.GetSonIds($typeid).') or typeid2 in ('.GetSonIds($typeid).')';
else
//$orwheres[] = ' typeid in ('.GetSonIds($typeid).','.$CrossID.')';
$orwheres[] = ' typeid in ('.GetSonIds($typeid).','.$CrossID.') or typeid2 in ('.GetSonIds($typeid).','.$CrossID.')';
content_list.php文件 162行
代码如下:
if($cid != 0)
{
$whereSql .= ' And arc.typeid in ('.GetSonIds($cid).')';
}
修改为
代码如下:
if($cid != 0)
{
$whereSql .= " And (arc.typeid in(".GetSonIds($cid).") or arc.typeid2 in (".GetSonIds($cid)."))";
}