From 6e54c31df658795ec830fc93a26cd6e3d910e2ef Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Fri, 20 Apr 2018 10:29:45 +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