application/core/System/Db/Mongo.php
@@ -507,6 +507,21 @@ } /** * 聚合 * @param [type] $colName [description] * @param [type] $params [description] * @return [type] [description] */ public function aggregate($colName, $params){ $col = $this->_getCol($colName); // 自动处理 '_id' 字段 //$query = $this->_parseId($query); $result = $col->aggregate($params); return $result['result']; } /** * 返回最后的错误信息 * * @return array @@ -538,5 +553,6 @@ } return $arr; } }//End Class ?>