Version:2.2.2 
file:UPLOAD\models\question.php
line:85
if ($category_id)
			{
				$where[] = 'category_id IN(' . implode(',', $this->model('system')->get_category_with_child_ids('question', $category_id)) . ')';		// 这里是把子分类也一起查找
			}
	
			$question_info_list = $this->fetch_page('question', implode(' AND ', $where), $order_key, $page, $per_page);
			
			$this->questions_list_total = $this->found_rows();
		}
		
		return $this->format_list_data($question_info_list);
根据上面的代码,查找一个 category_id 分类下的问题时会同时查找它所有子分类下的问题。
不知道我理解的对不对,为什么要这样设置,只查找该分类下的问题不就可以的吗?
                                     阅读全文
                                
                                
                                     收起全文