提交 d31a6cf9 编写于 作者: W wolfcode

fix bug

上级 081c404a
......@@ -1213,7 +1213,9 @@ abstract class PDOConnection extends Connection
$name = $cacheItem->getKey();
if ($this->cache->has($name)) {
return $this->cache->get($name) ?: [];
// 兼容 PHP 8.0 + ,建议放弃 think-cache 这个库 ~~~
$result = $this->cache->get($name) ?: [];
if (!empty($result)) return $result;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册