fix(gateway): show legacy season states

This commit is contained in:
2026-07-31 15:28:16 +00:00
parent 8a17412fcd
commit 809de8ace6
12 changed files with 246 additions and 43 deletions
+1
View File
@@ -45,6 +45,7 @@ export const zWorldStateMeta = z.object({
turntime: z.string().optional(),
otherTextInfo: z.string().optional(),
isUnited: z.number().optional(),
isunited: z.number().optional(),
autorun_user: z
.object({
limit_minutes: z.number().optional(),
+1 -1
View File
@@ -52,7 +52,7 @@ export const lobbyRouter = router({
opentime: worldState.meta.opentime ?? '',
turntime: worldState.meta.turntime ?? '',
otherTextInfo: worldState.meta.otherTextInfo ?? '',
isUnited: worldState.meta.isUnited ?? 0,
isUnited: worldState.meta.isunited ?? worldState.meta.isUnited ?? 0,
selectionPoolEnabled: isSelectionPoolWorld(rawWorldState),
npcPossessionEnabled: worldState.config.npcMode === 1,
myGeneral,
+1 -1
View File
@@ -88,7 +88,7 @@ const loadWorldTrendSnapshot = async (ctx: GameApiContext): Promise<WorldTrendSn
opentime: meta.opentime ?? '',
turntime: meta.turntime ?? '',
otherTextInfo: meta.otherTextInfo ?? '',
isUnited: meta.isUnited ?? 0,
isUnited: meta.isunited ?? meta.isUnited ?? 0,
};
};