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