From 2979d7d0dc9e3b09e484f2f2c471d7811ee71d5a Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Fri, 20 Apr 2018 10:27:04 +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