mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
model类find方法改进
This commit is contained in:
@@ -884,13 +884,13 @@ class Model
|
|||||||
}
|
}
|
||||||
// 数据处理
|
// 数据处理
|
||||||
$data = $this->_read_data($resultSet[0], $options);
|
$data = $this->_read_data($resultSet[0], $options);
|
||||||
// 数据对象赋值
|
|
||||||
$this->data = $data;
|
|
||||||
// 回调
|
// 回调
|
||||||
$this->_after_find($data, $options);
|
$this->_after_find($data, $options);
|
||||||
if (isset($cache)) {
|
if (isset($cache)) {
|
||||||
Cache::set($key, $data, $cache['expire']);
|
Cache::set($key, $data, $cache['expire']);
|
||||||
}
|
}
|
||||||
|
// 数据对象赋值
|
||||||
|
$this->data = $data;
|
||||||
return $this->data;
|
return $this->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user