Files
juzi/taobao/docs/淘宝小程序调研与架构设计.md
T
xsl 9eec4369da feat(taobao): add native mini program with shared backend
Preserve H5 flows while adding Taobao identity, native capture, reports and isolated local development. Fix canceled province selection and expired-session logout. Record passing local regressions, two pre-existing H5 assertion failures and pending platform validation.
2026-10-19 20:14:31 +08:00

16 lines
1.3 KiB
Markdown
Raw 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.
# 淘宝小程序当前架构(2026-10-18)
本轮用户确认:允许改共享后端,必须保持现有H5功能和显示一致;淘宝使用自己的账号体系与历史报告;共用后端并区分渠道;先本地验证,不动线上服务器。
此前V1.0方案中的三项判断已更正:
- 外部服务使用淘宝云网关,不把支付宝 `my.request` 直接作为正式网络方案。
- 淘宝账号来自网关签名校验后的平台OpenId,不沿用H5匿名游客,不接收客户端自报身份作为登录凭据。
- 网关有限时、限体积,采用64KiB分片上传和服务端异步检测任务,而不是三张base64合并发送并等待45秒。
运行方式、模块职责、认证流程、共享规则同步、测试和真实平台待验收项统一维护在 [../README.md](../README.md),以实际代码和该说明为准。
后端主入口仍为 `h5/server.js`:H5继续使用原路由;淘宝扩展位于 `h5/lib/taobao-routes.js`、`taobao-auth.js`、`taobao-session.js`。账号使用同一个服务端存储,微信和淘宝分别限定会话来源与报告所有者。
H5页面、样式、前端脚本和素材本轮均未改动。渠道字段仅由服务端路由确定,H5游客即使传 `channel: taobao` 也不改变不留存行为。