mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
Query类修改 find方法查询不到数据返回 NULL
This commit is contained in:
@@ -1753,7 +1753,6 @@ class Query
|
|||||||
|
|
||||||
// 返回结果处理
|
// 返回结果处理
|
||||||
if ($resultSet) {
|
if ($resultSet) {
|
||||||
|
|
||||||
// 数据列表读取后的处理
|
// 数据列表读取后的处理
|
||||||
if (!empty($this->model)) {
|
if (!empty($this->model)) {
|
||||||
// 生成模型对象
|
// 生成模型对象
|
||||||
@@ -1861,7 +1860,7 @@ class Query
|
|||||||
throw new DataNotFoundException('table data not Found:' . $options['table'], $options['table'], $options);
|
throw new DataNotFoundException('table data not Found:' . $options['table'], $options['table'], $options);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$data = false;
|
$data = null;
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user