Files
starRiverProperty/docs/testing/visitor-invite-test-bundle-README.txt
反编译工作区 25db029859 feat: 租户访客策略 SQL、访客邀约验证包、component-org 与发布脚本
- docs/sql: organization_* 与 tenant_* 访客楼层策略脚本
- docs/testing: 访客邀约页初始化验证、pack 脚本与 README(忽略 dist/__pycache__)
- maven-ninca-common-component-organization: CpImageStoreServiceImpl、starter、run-verify、releases 脚本与 javap 审计 JSON
- docs/superpowers: component-org 生产问题修复计划
- scripts/test-env/prepare-db.sh 更新

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-06 22:00:16 +08:00

40 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
访客邀约页初始化 — 部署测试包
================================
内含文件
--------
- visitor_invite_page_init_example.py 主程序(读库样本 + 调组织 /component/person/detail + 楼层预览 JSON
- run_visitor_invite_page_one_click.sh 一键入口
- requirements-visitor-invite-test.txt Python 依赖
环境要求
--------
- Python 3.8+(建议 3.10
- 可访问 MySQLcomponent-organization、cw-elevator-application
- 可 HTTP 访问组织组件(默认端口常与本仓库 test-env 中 PORT_COMPONENT_ORG 一致)
安装依赖
--------
pip3 install -r requirements-visitor-invite-test.txt
一键执行(stdout 为完整 JSONstderr 为日志)
--------
export MYSQL_HOST=<主机>
export MYSQL_PORT=3307
export MYSQL_USER=root
export MYSQL_PASS=<密码>
export ORG_BASE=http://<组织组件>:<端口>
bash run_visitor_invite_page_one_click.sh
可选:仅命令行指定被访人(不读库样本)
--------
python3 visitor_invite_page_init_example.py --no-db \
--business-id <BUSINESS_ID> --host-person-id <PERSON_ID>
说明
----
- 默认从库选一名「非访客标签」被访人,并从电梯库 tenant_visitor_floor_policy 取策略 allow_zone_ids(若存在)。
- 完整产品说明见源码仓库 docs/business/租户访客默认楼层技术产品方案.md(若未带仓库可忽略)。
版本:见压缩包文件名中的日期戳。