我的页签恢复邀请好友入口,AGC 客户端账号菜单接入邀请码与玩家社区 #578
Reference in New Issue
Block a user
Delete Branch "codex/profile-invite-entry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
交付内容
packages/shared/src/components/PlatformProfileReferralModal/,主站与 AGC 客户端共用一份实现(与充值、泥点账单弹层同口径);客户端弹层标题按入口文案覆盖为「邀请码 / 玩家社区」。todayInviterRewardCount + todayInviterRewardRemaining推导(当前 10),金额取后端rewardPoints(当前 30)。.platform-icon-button配色,说明气泡复用PlatformStatusMessage的 warning token。read_profile_referral_invite_center,用登录 origin 补全inviteLinkPath后交给渲染层;客户端不本地另存邀请码。apps/ai-game-creator-shell/scripts/check-config.mjs的 native-only 白名单门禁;微信群 / QQ 群二维码从media/social-media-group/迁入共享组件assets/。@source。docs/project-memory/shared-memory/decision-log.md与docs/【项目基线】当前产品与工程约束-2026-05-15.md。验证
npx vitest run packages/shared/src/components/PlatformProfileReferralModal/index.test.tsx src/components/platform-entry:13 文件 / 68 passed。npx vitest run apps/ai-game-creator-shell/tests/appSurface.test.ts apps/ai-game-creator-shell/tests/accountHost.test.ts:198 passed / 9 skipped。apps/ai-game-creator-shell:npm run typecheck(含 check-config 门禁)通过。npx tsc -p tsconfig.json --noEmit:仅剩 5 个既有历史报错文件,无新增。cargo check --tests --features=cocos-editor-execute,unity-editor-execute,godot-editor-execute:通过(仅 warning)。npm run check:encoding/npm run check:doc-index/git diff --check全过。已知口径问题(未改,待产品确认)
邀请上限的「当日」走
runtime_profile_day_start_micros(UTC 00:00,即北京 08:00 重置),而每日任务 / 每日免费泥点走runtime_profile_beijing_day_key(北京 00:00)。同一仓库两套「每日」口径并存,本次未改后端语义。