This commit is contained in:
thinkphp
2017-07-07 10:42:19 +08:00

View File

@@ -415,8 +415,9 @@ class Query
}
$result = $pdo->fetchColumn();
if ($force) {
$result = is_numeric($result) ? $result + 0 : $result;
$result += 0;
}
if (isset($cache)) {
// 缓存数据
$this->cacheData($key, $result, $cache);