mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
修正Model类
This commit is contained in:
@@ -163,7 +163,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
$item[$key] = $data;
|
$item[$key] = $data;
|
||||||
} else {
|
} else {
|
||||||
// 模型属性
|
// 模型属性
|
||||||
$item[$key] = $this->$key;
|
$item[$key] = $this->__get($key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return !empty($item) ? $item : [];
|
return !empty($item) ? $item : [];
|
||||||
|
|||||||
Reference in New Issue
Block a user