fix(server): load story chapters and unlock rewards from GameData

This commit is contained in:
2026-10-04 14:55:25 +08:00
parent 3825ee7e60
commit 013c4dcf1c
23 changed files with 1215 additions and 194 deletions
+3
View File
@@ -676,6 +676,9 @@ func serve(args []string) (serveErr error) {
); err != nil {
return fmt.Errorf("initialize complete account state generation: %w", err)
}
if err := worldService.EnsureInitialPackPurchase(); err != nil {
return fmt.Errorf("grant initial pack purchase rewards: %w", err)
}
if err := stateRepository.MarkInitializationComplete(); err != nil {
return fmt.Errorf("mark account initialization complete: %w", err)
}