modify plugin name

This commit is contained in:
2022-02-18 14:51:31 +08:00
parent 634b9223e0
commit 064ca3f728
+1 -1
View File
@@ -93,7 +93,7 @@ class Connection extends Component
if ($isMaster == false) {
return $this->_get($config, $coroutineName);
}
if (($pdo = Context::getContext($coroutineName)) instanceof PDO) {
if (!(($pdo = Context::getContext($coroutineName)) instanceof PDO)) {
$pdo = Context::setContext($coroutineName, $this->_get($config, $coroutineName));
}
return $pdo;