提交 360a9785 编写于 作者: lzc828's avatar lzc828

like where

上级 cafd56dc
......@@ -18,7 +18,7 @@ trait WhereTrait
if (is_array($key)) {
$key = $this->filter($key);
foreach ($key as $k => $v) {
$this->where[] = [$k, '=', $v, $link];
$this->where[] = [$k, ' = ', $v, $link];
}
} else if ($key instanceof \Closure) {
$this->where[] = [null, '(', null, $link];
......@@ -29,6 +29,7 @@ trait WhereTrait
$val = $operator;
$operator = '=';
}
$operator = ' ' . trim($operator) . ' ';
$this->where[] = [$key, $operator, $val, $link];
}
return $this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册