mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正db\driver\mongo::parseOrder()不能正确解析order参数的bug
This commit is contained in:
@@ -638,6 +638,9 @@ class Mongo extends Driver
|
||||
*/
|
||||
protected function parseOrder($order)
|
||||
{
|
||||
if(is_array($order)) {
|
||||
$order = join(',', $order);
|
||||
}
|
||||
if (is_string($order)) {
|
||||
$array = explode(',', $order);
|
||||
$order = [];
|
||||
|
||||
Reference in New Issue
Block a user