From 1b9dfa12b132ce3ac339923633fdbca3473e93e6 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Thu, 29 Mar 2018 13:28:15 +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