liufumingren
08d9ea103b
chore(微信): 移除自建微信授权表 wechat_oauth / wechat_mp_accounts
微信侧接入已统一到登录网关,自建的两套都下线:
- 删除表:wechat_oauth(自建公众号网页授权 + 运维手工维护的绑定关系)、
wechat_mp_accounts(小程序 code2Session 一键登录);迁移 20261029100000(up 删表、down 按原结构重建)
- 删除代码:service/{wechat,wechat_mp}.js、controller/web/wechat_mp.js、model/{wechat_oauth,wechat_mp_account}.js、
service/user.js#findByOpenid、user 模型的 hasMany WechatOauth、公众号 OAuth 回调与 /api/web/auth/wechat/*
- 删除环境变量:WECHAT_APPID/SECRET/REDIRECT_URI/API_BASE、WX_MP_*(config.wechat 只剩设备扫码登录用到的串码/二维码参数)
- 小程序:去掉「微信一键登录」tab,只留账号密码登录(删 utils/wechat.ts 与 wechatLogin 调用)
- sql/schema.sql 同步去掉 wechat_oauth 建表
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-29 17:20:28 +08:00
..
2026-10-21 18:03:31 +08:00
2026-10-20 00:47:31 +08:00
2026-10-19 22:04:03 +08:00
2026-10-22 00:30:09 +08:00
2026-10-19 22:04:03 +08:00
2026-10-19 22:04:03 +08:00
2026-10-17 08:50:32 +08:00
2026-10-19 22:04:03 +08:00
2026-10-19 22:04:03 +08:00
2026-10-21 17:43:18 +08:00
2026-10-21 17:43:18 +08:00
2026-10-29 17:20:05 +08:00
2026-10-19 22:04:03 +08:00
2026-10-29 17:19:24 +08:00
2026-10-29 17:20:05 +08:00