From 6e986f878ae7b82b1291a2d368485c30a2e02e86 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Thu, 26 Apr 2018 14:57:07 +0800
Subject: [PATCH] 新增原始数据上传接口

---
 Library/Mongo/Lite.php |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Library/Mongo/Lite.php b/Library/Mongo/Lite.php
index 9d16b53..243b077 100644
--- a/Library/Mongo/Lite.php
+++ b/Library/Mongo/Lite.php
@@ -374,6 +374,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'];
+    }
+
+    /**
      * ���������������������
      *
      * @param string $colName ���������

--
Gitblit v1.8.0