diff --git a/library/think/Model.php b/library/think/Model.php index 8cf92f73..4a82c5c6 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -654,7 +654,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess if ($this->resultSetType) { if ('collection' == $this->resultSetType) { $collection = new Collection($collection); - } else { + } elseif (false !== strpos($this->resultSetType, '\\')) { $class = $this->resultSetType; $collection = new $class($collection); }