fix db session

This commit is contained in:
jxxghp
2023-09-09 20:56:37 +08:00
parent a7a0889867
commit 9b17d55ac0
8 changed files with 18 additions and 0 deletions

View File

@ -184,3 +184,10 @@ class _PluginBase(metaclass=ABCMeta):
channel=channel, mtype=mtype, title=title, text=text,
image=image, link=link, userid=userid
))
def close(self):
"""
关闭数据库连接
"""
if self.db:
self.db.close()