feat: 接入微信隐私授权API和用户信息获取

- WxSDK 新增隐私授权检查和用户信息获取方法
- StorageManager 新增用户信息本地缓存方法
- PageHome 进入时检查隐私授权状态
- PageWriteLevels 分享时获取用户头像昵称并上传服务端
- ApiConfig 新增用户信息 API 端点

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
richarjiang
2026-04-07 21:40:48 +08:00
parent 0ecb572ba8
commit 0da6fc12bb
5 changed files with 254 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ export const API_ENDPOINTS = {
USER_GAME_DATA: `${API_BASE}/user/game-data`,
LEVELS: `${API_BASE}/wechat-game/levels`,
SHARE_CREATE: `${API_BASE}/share`,
USER_INFO: `${API_BASE}/user/info`,
} as const;
/** 构建加入分享的 URL */