release: bump version to 1.1.7, update xq0031_xq0032 plugin to 1.0.8

主要变更:
1. 整体版本升级至1.1.7,更新安装包与shell版本号
2. 新增API与后端能力:
   - 新增停止运行接口,支持强制终止插件进程与浏览器子进程
   - 云端会话令牌与下载票据落库,适配多worker部署
   - 优化Chrome版本读取逻辑,避免弹窗与编码问题
3. xq0031_xq0032插件升级至1.0.8:
   - 新增仓库中文名自动筛选功能,简化用户操作
   - 优化ERP登录与报表导出流程,修复标签页残留问题
   - 新增前端强制停止按钮,支持实时终止运行
   - 修复中文编码与乱码问题,兼容Windows非UTF-8环境
4. 修复授权校验逻辑,确保账号与授权匹配
5. 更新文档与部署脚本,修正发版流程说明
This commit is contained in:
2026-09-17 23:25:33 +08:00
parent b32f8e8fe2
commit a649a938e6
29 changed files with 975 additions and 2015 deletions
+16 -1
View File
@@ -13,7 +13,7 @@ from fastapi import APIRouter, HTTPException, Request, WebSocket
from webhost.backend import licensing
from webhost.backend import scheduler as _scheduler
from webhost.backend import state as _st
from webhost.backend.core.runner import RunReq, _run_target
from webhost.backend.core.runner import RunReq, _run_target, terminate_run
from webhost.backend.core.hub import HUB
from webhost.backend.plugins import PLUGINS
from webhost.backend.core.session import _require_login, _sess_account
@@ -94,6 +94,21 @@ def get_run(run_id: str, request: Request) -> dict:
return run
@router.post("/api/runs/{run_id}/stop")
def stop_run(run_id: str, request: Request) -> dict:
"""手动强制停止指定运行:仅运行属主可操作,整树强杀执行子进程(含浏览器)。"""
account = _require_login(request)
with _st.RUN_LOCK:
run = _st.RUNS.get(run_id)
if not run or run.get("account") != account:
raise HTTPException(404, "运行不存在")
if run.get("status") != "running":
raise HTTPException(409, "运行已结束,无需停止")
if not terminate_run(run_id):
raise HTTPException(409, "任务尚未真正启动(排队中或刚结束),请稍候再试")
return {"ok": True}
@router.websocket("/ws")
async def ws(websocket: WebSocket):
if not _sess_account(websocket): # WS 握手需有效统一账户会话