liufumingren
4f637f1307
feat(web): 微信小程序 code2Session 登录与账号绑定
- POST /api/web/auth/wechat/login:code 换 openid,已绑定直接签发令牌,
未绑定自动建平台账号(首登标记 firstTime)
- bind / bindings / unbind:登录态下绑定、查询、解绑小程序账号
- wechat_mp_accounts 表 + 迁移;未配置 WX_MP_APPID/SECRET 时本地与单测走 mock
- 新增 cors 中间件(小程序 H5 预览直连后端;鉴权只靠 header 令牌,不依赖 cookie)
- 补充 wechat-mp 接口单测
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-21 00:47:11 +08:00
..
2026-10-20 18:55:57 +08:00
2026-10-20 18:55:57 +08:00
2026-10-20 00:47:31 +08:00
2026-10-19 22:04:03 +08:00
2026-10-19 22:04:03 +08:00
2026-10-19 22:04:03 +08:00
2026-10-19 22:04:03 +08:00
2026-10-19 22:04:03 +08:00
2026-10-20 18:55:57 +08:00
2026-10-19 22:04:03 +08:00
2026-10-17 08:50:32 +08:00
2026-10-20 18:55:57 +08:00
2026-10-19 22:04:03 +08:00
2026-10-21 00:47:11 +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-20 01:09:32 +08:00