增加默认执行all命令
This commit is contained in:
parent
1e8fc7d1de
commit
be93d78d71
@ -221,6 +221,7 @@ class MainShowChatRecords():
|
||||
|
||||
app.register_blueprint(api)
|
||||
|
||||
try:
|
||||
# 自动打开浏览器
|
||||
url = "http://127.0.0.1:5000/"
|
||||
# 根据操作系统使用不同的命令打开默认浏览器
|
||||
@ -232,6 +233,8 @@ class MainShowChatRecords():
|
||||
subprocess.call(['xdg-open', url])
|
||||
else:
|
||||
print("Unsupported platform, can't open browser automatically.")
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
print("[+] 请使用浏览器访问 http://127.0.0.1:5000/ 查看聊天记录")
|
||||
app.run(host='0.0.0.0', port=5000, debug=False)
|
||||
|
Loading…
Reference in New Issue
Block a user