Skip to content

Commit e6e4633

Browse files
committed
修正Mongo驱动
1 parent 4f8251e commit e6e4633

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/db/Mongo.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function dec($field, $step = 1)
316316
* @param mixed $op 查询表达式
317317
* @param mixed $condition 查询条件
318318
* @param array $param 查询参数
319-
* @return void
319+
* @return $this
320320
*/
321321
protected function parseWhereExp($logic, $field, $op, $condition, $param = [])
322322
{
@@ -339,7 +339,7 @@ protected function parseWhereExp($logic, $field, $op, $condition, $param = [])
339339
$this->options['where'][$logic] = isset($this->options['where'][$logic]) ? array_merge($this->options['where'][$logic], $where) : $where;
340340
}
341341

342-
return;
342+
return $this;
343343
} elseif ($field && is_string($field)) {
344344
// 字符串查询
345345
$where = [$field, 'null', ''];
@@ -363,6 +363,8 @@ protected function parseWhereExp($logic, $field, $op, $condition, $param = [])
363363
$this->options['where'][$logic][$field] = $where;
364364
}
365365
}
366+
367+
return $this;
366368
}
367369

368370
/**

0 commit comments

Comments
 (0)