8a00712750
阶段3(统一账号落地,小程序侧):
- require_auth 改为解平台 JWT(app.jwt.decode_access_token),返回 {username,sub};
新增 _current_user(按 sub/username 取 users)、_user_payload(读 users 昵称/手机/
opc_status/topics/source)、_set_user_phone。
- me/update-profile/bind-phone/wx-phone 改为读写平台 users;绑定手机用平台 sms 校验
(platform_sms.verify) + 写 users.phone;update-profile 映射 name→nickname、
status→opc_status、topics→JSON。
- 业务(报名/我的报名/查报名/签到)改从 _current_user 取手机号等资料。
- 移除培训端自带登录:register/login/send-code/phone-login/wx-login 返回 410,
防止再产生 accounts 双套账号(统一走平台 /auth)。
Co-Authored-By: Claude <noreply@anthropic.com>