feat: GetFrontInfo에 serverCnt 추가

This commit is contained in:
2023-03-09 02:20:21 +09:00
parent abccc7c268
commit f1219c5db4
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -66,6 +66,7 @@ class GetFrontInfo extends \sammo\BaseAPI
$year, $month, $startYear,
$generalCntLimit,
$apiLimit,
$serverCnt,
] = $gameStor->getValuesAsArray([
'scenario_text', 'extended_general', 'fiction', 'npcmode',
'join_mode', 'autorun_user', 'turnterm', 'turntime',
@@ -74,6 +75,7 @@ class GetFrontInfo extends \sammo\BaseAPI
'year', 'month', 'startyear',
'maxgeneral',
'conlimit',
'server_cnt',
]);
$lastVote = null;
@@ -122,6 +124,7 @@ class GetFrontInfo extends \sammo\BaseAPI
'tournamentState' => $tournamentState,
'genCount' => $globalGenCount,
'generalCntLimit' => $generalCntLimit,
'serverCnt' => $serverCnt,
'lastVote' => $lastVote === null ? null : $lastVote->toArray(),
];
}
+1
View File
@@ -133,6 +133,7 @@ export type GetFrontInfoResponse = {
tournamentState: string;
genCount: number;
generalCntLimit: number;
serverCnt: number;
lastVote: VoteInfo | null;
};
general: GeneralListItemP1 & {