Skip to content

Commit

Permalink
Merge pull request #658 from midoks/dev
Browse files Browse the repository at this point in the history
插件优化
  • Loading branch information
midoks authored Dec 19, 2024
2 parents 309b5b9 + 7383317 commit f5eacd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

* SSH终端工具
* 面板收藏功能
* 网站子目录绑定
* 网站备份功能
* 插件方式管理

Expand Down
9 changes: 8 additions & 1 deletion web/utils/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,14 @@ def checkIndexList(self, name, version):
indexList = thisdb.getOptionByJson('display_index',default=[])
for i in indexList:
t = i.split('-')
if t[0] == name:
tlen = len(t)
plugin_name = t[0]
plugin_ver = t[1]
if tlen > 2:
tArr = t[0:tlen - 1]
plugin_name = '-'.join(tArr)
plugin_ver = t[tlen - 1]
if plugin_name == name:
return True
return False

Expand Down

0 comments on commit f5eacd6

Please sign in to comment.