Summary
A shared rental mini-program system covering user flows, payment guarantees, cabinet state, channel settlement, and operations.
Business Value
Unified user rental flows, payment guarantees, cabinet state, channel settlement, and operations into a traceable delivery system.
Engineering Depth
Combines Spring Boot modular delivery, WeChat payment integrations, vendor device adapters, Redis idempotency and locking, audit logs, Flyway, multi-client frontends, and host deployment.
Evidence
本地仓库 README / doc/技术方案说明 / server / miniapp / tests / deploy
Repository · Confidence High · Verified 2026-05-17
- Evidence level: strict review (core sections only show verifiable metrics)
- Source type: Repository / code records
- Source link: no public link provided, review against delivery records
- Verified at: 2026-05-17 (31 days ago, fresh evidence)
Rationale: High confidence: organized under strict evidence rules, traceable to repository or code records, verified 31 days ago.
Background
共享擦窗宝租赁需要同时处理微信小程序用户体验、后台运营、渠道合作、支付担保、柜机开锁和归还审核。
Challenge
租赁链路涉及多方外部系统,支付、免押和设备回调可能重复、延迟或乱序;如果缺少统一状态和审计,资金与设备动作很难安全闭环。
Action and Results
Solution
- 多端工程组织:单仓维护 Spring Boot 后端、React 管理端/渠道端、uni-app 小程序和共享组件,接口与文档同步推进。
- 状态与幂等治理:围绕订单生命周期建立状态历史、审计日志、Redis/JDBC 幂等、分布式锁和人工补偿入口。
- 外部能力适配:通过支付、免押和设备网关隔离微信支付、微信支付分和柜机厂商协议,真实配置缺失时暴露阻塞态。
- 发布与回滚:沉淀 Flyway 迁移策略、Maven/Vite 门禁、小程序验证清单和宿主机 release 切换流程。
Result
完成测试期租赁闭环主体能力:扫码租用、在线预约、支付/免押、开门取机、归还审核、异常反馈、渠道结算、后台运维与服务器发布。
Key Signals
按 `server / admin / channel / miniapp / shared / deploy` 组织单仓多端工程,统一用户端、后台、渠道端与部署链路。 将订单、支付、免押、开锁、归还、补偿和结算状态收敛到服务端,以幂等、锁、状态历史和审计日志处理外部回调乱序风险。 通过 `DeviceGateway`、`DepositFreeGateway` 和回调验签服务隔离柜机厂商、微信支付 v3 与微信支付分,缺配置时返回真实阻塞态。 补齐 Maven 测试、前端构建、小程序验证清单、Flyway 版本策略和宿主机 release 脚本,保证交付和回滚路径清晰。 Tech Stack
Java 21Spring Boot 3.5MySQLRedisFlywayReact 19TypeScriptViteuni-appWeChat PayWeChat Pay ScoreDevice Gateway