fix: 增加微信登录配置部署检查 #10

Closed
que01 wants to merge 2 commits from fix/wechat-login-config-gate into main
pull from: fix/wechat-login-config-gate
Owner

背景

体验版调用 wx.login 时返回「微信登录尚未配置」。根因是生产 shared/.env.production 缺少 WECHAT_APP_ID 和 WECHAT_APP_SECRET;后台「小程序上传配置」只负责构建和上传,不提供登录换码所需的 AppSecret。

变更

  • deploy:status 增加 wechat-login=configured|missing 门禁,两项环境变量任一缺失即失败。
  • 部署文档说明上传配置与登录配置的区别、AppID 一致性要求及重启方式。
  • 环境变量样例补充注释。

验证

  • node --test scripts/deploy/status.test.mjs(4/4)
  • pnpm format:check
  • git diff --check
## 背景 体验版调用 `wx.login` 时返回「微信登录尚未配置」。根因是生产 `shared/.env.production` 缺少 `WECHAT_APP_ID` 和 `WECHAT_APP_SECRET`;后台「小程序上传配置」只负责构建和上传,不提供登录换码所需的 AppSecret。 ## 变更 - `deploy:status` 增加 `wechat-login=configured|missing` 门禁,两项环境变量任一缺失即失败。 - 部署文档说明上传配置与登录配置的区别、AppID 一致性要求及重启方式。 - 环境变量样例补充注释。 ## 验证 - `node --test scripts/deploy/status.test.mjs`(4/4) - `pnpm format:check` - `git diff --check`
que01 added 1 commit 2026-10-23 11:28:05 +00:00
fix: 增加微信登录配置部署检查
CI / API integration (pull_request) Successful in 1m44s
CI / Browser smoke (pull_request) Failing after 12m12s
CI / Static checks (pull_request) Failing after 12m13s
CI / Production build (pull_request) Has been cancelled
92227e1311
que01 added 1 commit 2026-10-23 13:34:49 +00:00
chore: 重新触发 CI(Gitea 状态上报失败)
CI / API integration (pull_request) Successful in 3m41s
CI / Browser smoke (pull_request) Failing after 13m2s
CI / Static checks (pull_request) Failing after 13m4s
CI / Production build (pull_request) Has been cancelled
1e1d4d0326
que01 closed this pull request 2026-10-23 14:08:38 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: que01/persionalBrand#10