初步增加 web 界面
This commit is contained in:
@@ -118,6 +118,7 @@ def main():
|
||||
parser.add_argument('-i', '--index', type=int, default=0, help='单账号登录时的账号索引')
|
||||
parser.add_argument('-b', '--batch', action='store_true', help='批量登录模式')
|
||||
parser.add_argument('-g', '--gui', action='store_true', help='启动GUI界面')
|
||||
parser.add_argument('-w', '--web', action='store_true', help='启动Web后台')
|
||||
parser.add_argument('-v', '--verbose', action='store_true', help='详细日志')
|
||||
|
||||
args = parser.parse_args()
|
||||
@@ -133,6 +134,12 @@ def main():
|
||||
app.run()
|
||||
return
|
||||
|
||||
# 启动Web后台
|
||||
if args.web:
|
||||
from web.backend.main import run
|
||||
run()
|
||||
return
|
||||
|
||||
# 加载配置
|
||||
try:
|
||||
config = Config(args.config)
|
||||
|
||||
Reference in New Issue
Block a user