colly_wyx
2017-08-11 2c88c99afe3b6f68d9f74d68f7e02a62e2f2c32d
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
?>