初步增加 web 界面

This commit is contained in:
yml2213
2026-06-22 13:11:15 +08:00
parent 4c924375aa
commit 347edb8103
66 changed files with 6816 additions and 21 deletions
+7
View File
@@ -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)