mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 13:12:49 +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);
|
||||
|
||||
call_user_func_array([$model, $method], $args);
|
||||
return $model;
|
||||
return $query;
|
||||
} else {
|
||||
return call_user_func_array([$query, $method], $args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user