mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -211,6 +211,17 @@ def setBotConf():
|
||||
return mw.returnJson(True, '保存成功!', [])
|
||||
|
||||
|
||||
def installPreInspection():
|
||||
i = sys.version_info
|
||||
if i[0] < 3 or i[1] < 7:
|
||||
return "telebot在python小于3.7无法正常使用"
|
||||
return 'ok'
|
||||
|
||||
|
||||
def uninstallPreInspection():
|
||||
return "请手动删除<br/> rm -rf {}".format(getServerDir())
|
||||
|
||||
|
||||
def runLog():
|
||||
p = getServerDir() + '/task.log'
|
||||
return p
|
||||
@@ -234,6 +245,10 @@ if __name__ == "__main__":
|
||||
print(initdInstall())
|
||||
elif func == 'initd_uninstall':
|
||||
print(initdUinstall())
|
||||
elif func == 'install_pre_inspection':
|
||||
print(installPreInspection())
|
||||
elif func == 'uninstall_pre_inspection':
|
||||
print(uninstallPreInspection(version))
|
||||
elif func == 'get_bot_conf':
|
||||
print(getBotConf())
|
||||
elif func == 'set_bot_conf':
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"tip": "soft",
|
||||
"checks": "server/tgbot",
|
||||
"path": "server/tgbot",
|
||||
"install_pre_inspection":true,
|
||||
"display": 1,
|
||||
"author": "midokos",
|
||||
"date": "2023-03-06",
|
||||
|
||||
Reference in New Issue
Block a user