fix/wechat-login-config-gate
main
体验版调用 wx.login 时返回「微信登录尚未配置」。根因是生产 shared/.env.production 缺少 WECHAT_APP_ID 和 WECHAT_APP_SECRET;后台「小程序上传配置」只负责构建和上传,不提供登录换码所需的 AppSecret。
wx.login
shared/.env.production
WECHAT_APP_ID
WECHAT_APP_SECRET
deploy:status
wechat-login=configured|missing
node --test scripts/deploy/status.test.mjs
pnpm format:check
git diff --check
No dependencies set.
The note is not visible to the blocked user.
背景
体验版调用
wx.login时返回「微信登录尚未配置」。根因是生产shared/.env.production缺少WECHAT_APP_ID和WECHAT_APP_SECRET;后台「小程序上传配置」只负责构建和上传,不提供登录换码所需的 AppSecret。变更
deploy:status增加wechat-login=configured|missing门禁,两项环境变量任一缺失即失败。验证
node --test scripts/deploy/status.test.mjs(4/4)pnpm format:checkgit diff --checkPull request closed