Skip to content

Commit

Permalink
修正Mongo驱动
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Feb 5, 2018
1 parent 4f8251e commit e6e4633
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/db/Mongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function dec($field, $step = 1)
* @param mixed $op 查询表达式
* @param mixed $condition 查询条件
* @param array $param 查询参数
* @return void
* @return $this
*/
protected function parseWhereExp($logic, $field, $op, $condition, $param = [])
{
Expand All @@ -339,7 +339,7 @@ protected function parseWhereExp($logic, $field, $op, $condition, $param = [])
$this->options['where'][$logic] = isset($this->options['where'][$logic]) ? array_merge($this->options['where'][$logic], $where) : $where;
}

return;
return $this;
} elseif ($field && is_string($field)) {
// 字符串查询
$where = [$field, 'null', ''];
Expand All @@ -363,6 +363,8 @@ protected function parseWhereExp($logic, $field, $op, $condition, $param = [])
$this->options['where'][$logic][$field] = $where;
}
}

return $this;
}

/**
Expand Down

0 comments on commit e6e4633

Please sign in to comment.