Repository navigation
feat: 支援離線玩家匿名化 - #27
Merged
Merged
Conversation
Closed
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.
變更
玩家要求刪除個人識別資料時,現有資料仍會保留 UUID、名稱及稽核自由文字。本 PR 加入離線維護指令,讓管理員在停止所有使用同一份資料的 InviteCode 實例並備份後,依 UUID 匿名化玩家;歷史關聯改用隨機識別碼,相關自由文字會遮蔽。
匿名化前會拒絕尚未處理或結果不明的獎勵。已用邀請碼以密鑰雜湊保留占用,避免重新發放,同時讓玩家重新加入時視為新玩家。SQLite、MySQL、JSON 均支援此流程及相應資料版本遷移;操作與資料邊界記錄於 ADR 和維運文件。
驗證
mise exec java@local-8 -- .\gradlew.bat check shadowJar --no-daemon通過。Closes #25