feat(api): 接入微信登录并原生实现咨询域(ECR-049/050)

小程序可在 Go 上完成微信手机号登录、测评、预约和下单,不再反代 Java。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-09-15 00:26:29 +08:00
co-authored by Cursor
parent db4d118f9a
commit 7155b8b53a
45 changed files with 3013 additions and 27 deletions
+13
View File
@@ -0,0 +1,13 @@
# TEST_REPORT — ECR-049
Date: 2026-09-14
| Check | Result |
|-------|--------|
| `python scripts/repo-governance-check.py` | PASS · max 000058 · Next ECR-050 |
| `go test ./internal/wechat` | PASSAES 手机号解密往返) |
| `go build ./...`apps/api | PASS |
| 微信真机 `code` + 咨询反代 | **未测**(需 AppId/Secret + Java `auth.internal-issue-key` + 现网网关) |
| 小程序微信开发者工具点选 | **未测**(本环境无该工具) |
未做:咨询业务迁库、支付、下线 Java。
+14
View File
@@ -0,0 +1,14 @@
# TEST_REPORT — ECR-050
Date: 2026-09-14
| Check | Result |
|-------|--------|
| `repo-governance-check.py` | PASS · max 000059 |
| `go test ./internal/wechatpay` | PASS |
| `go test ./internal/wechat` | PASS |
| `go test ./internal/integration -run TestConsultNativePublic\|TestAuthLogout` | PASS |
| `go build ./...` | PASS |
| 微信开发者工具点选 | **未测** |
未做:现网 MySQL 灌数、现网关 Java 进程。