mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
update thinkphp/library/think/model.php
为$options设置默认值,当_read_datalist()函数调用时可以不传此参数,避免traits/model/Relation函数中的_after_select()和_after_find()重复执行
This commit is contained in:
@@ -677,7 +677,7 @@ class Model
|
||||
* @param array $data 当前数据
|
||||
* @return array
|
||||
*/
|
||||
protected function _read_data($data, $options)
|
||||
protected function _read_data($data, $options = [])
|
||||
{
|
||||
// 检查字段映射
|
||||
if (!empty($this->map)) {
|
||||
|
||||
Reference in New Issue
Block a user