feat: add service config templates and extraction script

Former-commit-id: 1de24b7eb79676d1aba9d799a58c5a753290cf52
This commit is contained in:
反编译工作区
2026-05-01 19:38:01 +08:00
parent 3175b7074b
commit 8b15445328
2433 changed files with 8322164 additions and 1604 deletions
@@ -0,0 +1,31 @@
发布包目录(源码内):
docs/testing/release-visitor-noauth-verify-v20260430
一、测试执行(单行,与 README「4」一致;在解压后的发布包根目录执行,须有子目录 python/)
python3 -m pip install -q -r python/requirements-min.txt && python3 python/quick_verify_visitor_floor_policy.py --mode noauth-probe --org-base-url "http://10.0.22.207:8089" --elevator-base-url "http://10.0.22.207:16112" --use-preset-cases --visitor-person-ids "$(python3 -c 'print(",".join(str(9199000100000000000+i) for i in range(1,26)))')" --probe-with-businessid --batch-output-summary "batch-preset-static-$(date +%Y%m%d-%H%M%S).json"
二、一键打包(在仓库根「源码」目录执行,排除本地 report 里的 JSON 痕迹与 __pycache__
STAMP=$(date +%Y%m%d-%H%M%S)
OUT="docs/testing/release-visitor-noauth-verify-v20260430-prod-${STAMP}.zip"
zip -r "$OUT" docs/testing/release-visitor-noauth-verify-v20260430 \
-x 'docs/testing/release-visitor-noauth-verify-v20260430/report/*.json' \
-x '*.pyc' -x '*__pycache__*' -x '*.pyo'
unzip -l "$OUT" | tail -5
echo "written: $OUT"
三、解压到测试机后的目录示例
mkdir -p ~/visitor-noauth-verify && cd ~/visitor-noauth-verify
unzip -q release-visitor-noauth-verify-v20260430-prod-*.zip
cd docs/testing/release-visitor-noauth-verify-v20260430
(在此目录执行上文「一行命令」)
四、打包前自检
1) python/quick_verify_visitor_floor_policy.py、requirements*.txt 存在
2) sql/、README.md 与交付地址/访客号段约定一致
3) MANIFEST.txt 与目录一致
五、选配:连 MySQL 等参数由运维另表提供,不写死于此文件;勿用开发与目标不一致的库串联 HTTP。