From 2c88c99afe3b6f68d9f74d68f7e02a62e2f2c32d Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Fri, 11 Aug 2017 13:56:01 +0800 Subject: [PATCH] 修改默认路口 --- application/core/System/Db/Mongo.php | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/application/core/System/Db/Mongo.php b/application/core/System/Db/Mongo.php index af44e2e..d4ac5ae 100644 --- a/application/core/System/Db/Mongo.php +++ b/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 ?> \ No newline at end of file -- Gitblit v1.8.0