mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
scope方法调整
This commit is contained in:
@@ -1542,7 +1542,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $model;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1937,7 +1937,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
array_unshift($args, $query);
|
array_unshift($args, $query);
|
||||||
|
|
||||||
call_user_func_array([$model, $method], $args);
|
call_user_func_array([$model, $method], $args);
|
||||||
return $model;
|
return $query;
|
||||||
} else {
|
} else {
|
||||||
return call_user_func_array([$query, $method], $args);
|
return call_user_func_array([$query, $method], $args);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user