exp查询支持传入绑定参数

This commit is contained in:
thinkphp
2016-12-28 17:52:38 +08:00
parent 293dce8639
commit e4c0e406cf

View File

@@ -957,6 +957,10 @@ class Query
$where[$field] = ['eq', $op];
} else {
$where[$field] = [$op, $condition];
if ('exp' == strtolower($op) && isset($param[2]) && is_array($param[2])) {
// 参数绑定
$this->bind($param[2]);
}
// 记录一个字段多次查询条件
$this->options['multi'][$field][] = $where[$field];
}