feat: 商业版第一步·个人版包收尾(决策 228)——build_portable 三坑修复(cp315 cffi 版本错配→本地 wheels 离线安装、get-pip 在线自举卡死弃用、--no-cache-dir 绕权限)、gate 放行 /api/version* 版本状态口、强制更新冒烟断言、决策 228 与协作改进补记、误入库 pip 临时文件清理

This commit is contained in:
lianjianwei2024
2026-10-27 12:58:53 +08:00
parent 380a39f8db
commit 2726454298
10 changed files with 572 additions and 4511 deletions

View File

@@ -205,6 +205,10 @@ def intercept(method, path, body=None):
"message": "软件文件完整性校验失败,请重新安装或联系软件提供方"}}}
if path.startswith("/api/license/"):
return _license_api(method, path, body)
if path.startswith("/api/version"):
# 版本状态口(/api/version、/api/version_info)在锁定态也放行:
# 排障要看版本;强制更新页要轮询它(2026-10-27 5.9)。
return None
if not _cfg.get("enforce", True):
return None
c = _client_for_request()