Merged
Conversation
0f10bc9 to
0f6a7c0
Compare
0f6a7c0 to
b749cfc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📄 Step 23 規格書(卡拉 OK 次數限制與附加功能)
1. 階段目標
2. 功能需求
2.1 次數限制邏輯
game_state.karaoke:{ "lastPlayDate": "2025-09-06", "playedToday": true }判斷流程:
playedToday=true且lastPlayDate==today→ 禁用所有曲目。playedToday=false。結算時(Step 22-4 完成獎勵入帳後)→ 將
playedToday=true並更新lastPlayDate。首頁提醒規則:
playedToday=true,首頁「音樂遊戲」圖示右上角顯示紅色脈動通知(特效沿用設定按鈕上的紅點 ScaleTransition 動畫)。playedToday=false時,該紅點自動消失。2.2 UI 說明文字
置頂顯示一段文案(多語系):
"You may play freely until you finish one game. Only the first completed game counts for daily reward.""每日可自由重試,但僅首次完成遊戲可獲得獎勵。完成後當日不可再玩。""1日に自由にリトライできますが、報酬は最初のクリアのみです。完了後はその日は遊べません。""하루에 자유롭게 리트라이 가능하지만 보상은 첫 클리어만 지급됩니다. 완료 후 그날은 더 이상 플레이 불가합니다."2.3 全曲下載按鈕
按鈕狀態:
2.4 試聽功能
在歌曲列表元件中:
3. 驗收標準
4. 實例化需求測試案例
案例 1:當日未完成結算
案例 2:當日完成結算
案例 3:跨日自動重置
playedToday=trueplayedToday=false;曲目可再選案例 4:全曲下載按鈕
案例 5:試聽功能