start falsk 添加参数是否自动打开浏览器
This commit is contained in:
parent
2078619916
commit
26a84f9c73
@ -12,7 +12,7 @@ import time
|
||||
|
||||
|
||||
def start_falsk(merge_path="", msg_path="", micro_path="", media_path="", wx_path="", key="", my_wxid="", port=5000,
|
||||
online=False, debug=False):
|
||||
online=False, debug=False,isopenBrowser=True):
|
||||
"""
|
||||
启动flask
|
||||
:param merge_path: 合并后的数据库路径
|
||||
@ -75,7 +75,7 @@ def start_falsk(merge_path="", msg_path="", micro_path="", media_path="", wx_pat
|
||||
save_session(session_file, "test", my_wxid)
|
||||
|
||||
app.register_blueprint(api)
|
||||
|
||||
if isopenBrowser:
|
||||
try:
|
||||
# 自动打开浏览器
|
||||
url = f"http://127.0.0.1:{port}/"
|
||||
|
Loading…
Reference in New Issue
Block a user