mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
修正方法
This commit is contained in:
@@ -663,7 +663,7 @@ abstract class Driver
|
||||
* @param mixed $condition 查询条件
|
||||
* @return Model
|
||||
*/
|
||||
public function or($field, $op = null, $condition = null)
|
||||
public function whereOr($field, $op = null, $condition = null)
|
||||
{
|
||||
if ($field instanceof \Closure) {
|
||||
$where[] = $field;
|
||||
@@ -1566,7 +1566,8 @@ abstract class Driver
|
||||
}
|
||||
|
||||
// 执行闭包子查询
|
||||
protected function parseClosure($call,$show=true){
|
||||
protected function parseClosure($call, $show = true)
|
||||
{
|
||||
$class = clone $this;
|
||||
call_user_func_array($call, [ & $class]);
|
||||
return $class->buildSql($show);
|
||||
|
||||
Reference in New Issue
Block a user