This commit is contained in:
thinkphp
2018-05-07 22:33:19 +08:00
parent ac0a9721ef
commit 151052cd3f

View File

@@ -269,9 +269,7 @@ abstract class Builder
foreach ($val as $field => $value) {
if ($value instanceof Expression) {
$str[] = ' ' . $key . ' ( ' . $field . ' ' . $value->getValue() . ' )';
continue;
}
if ($value instanceof \Closure) {
} elseif ($value instanceof \Closure) {
// 使用闭包查询
$query = new Query($this->connection);
call_user_func_array($value, [ & $query]);