feat: 插件更新历史

This commit is contained in:
jxxghp 2024-04-10 16:44:08 +08:00
parent e20ec4ddf5
commit d0e596c93c
2 changed files with 5 additions and 0 deletions

View File

@ -411,6 +411,9 @@ class PluginManager(metaclass=Singleton):
# 作者
if plugin_info.get("author"):
plugin.plugin_author = plugin_info.get("author")
# 更新历史
if plugin_info.get("history"):
plugin.history = plugin_info.get("history")
# 仓库链接
plugin.repo_url = market
# 本地标志

View File

@ -40,3 +40,5 @@ class Plugin(BaseModel):
repo_url: Optional[str] = None
# 安装次数
install_count: Optional[int] = 0
# 更新记录
history: Optional[dict] = {}