diff --git a/core/base/mysql.py b/core/base/mysql.py index fd7d90e..1b89813 100644 --- a/core/base/mysql.py +++ b/core/base/mysql.py @@ -28,3 +28,6 @@ class MySQL(Service): """获取会话""" async with self.Session() as session: yield session + + async def stop(self): + self.Session.close_all()