modify plugin name

This commit is contained in:
2022-02-25 18:11:09 +08:00
parent a71924dd37
commit c0efa2f913
+4 -1
View File
@@ -57,7 +57,10 @@ class Connection extends Component
*/
public function beginTransaction($coroutineName)
{
$connection = Context::getContext($coroutineName);
$connection = Context::getContext($coroutineName['cds']);
if (is_null($connection)) {
$connection = $this->get($coroutineName);
}
if ($connection instanceof PDO) {
$connection->beginTransaction();
}