Files
digital-psychology/docs/ECR/ECR-049-wechat-auth-gateway.md
T
jackyu66gitandCursor 7155b8b53a feat(api): 接入微信登录并原生实现咨询域(ECR-049/050)
小程序可在 Go 上完成微信手机号登录、测评、预约和下单,不再反代 Java。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 00:26:29 +08:00

26 lines
963 B
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.
# ECR-049
**Canonical-ID:** `ECR-049`
**Title:** 微信小程序登录 + 咨询过渡网关
**Status:** **Approved · Coding**
**Auth:** `ECR-049_WRITE_AUTHORIZATION.md`
## Change
1. Spec `account-auth`:小程序登录改为微信;游客仍不可出报告
2. ADR-0008Go 为唯一用户后台;Java 过渡期为被调方
3. `POST /api/v1/auth/wechat` + migration `000058`
4. Go 反代 `/api/app-api/*``/api/admin-api/*` 到 Java(带内网签发的 Java Bearer
5. 小程序(另仓)收成单 token / 单 base / 唯一 `login-pop`
## Forbidden
咨询/测评/订单/支付迁库 · 下线 Java/MySQL · 改 Admin 登录 · Write-Wave 续刀 · 自动 ECR-050
## Acceptance
- 微信 `code` 只打 Go 一次;咨询接口经反代仍可用
- 同一 openid/手机号在魔方与咨询认同一人
- 未配置微信密钥时接口明确失败,不回落到账密
- `repo-governance-check.py` PASS · Max Migration=`000058`