From f1219c5db423f9c35be3c62297a45cef8a8531be Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 5 Mar 2023 00:35:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20GetFrontInfo=EC=97=90=20serverCnt=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/General/GetFrontInfo.php | 3 +++ hwe/ts/defs/API/Global.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/hwe/sammo/API/General/GetFrontInfo.php b/hwe/sammo/API/General/GetFrontInfo.php index 9b2ae5fe..207c881d 100644 --- a/hwe/sammo/API/General/GetFrontInfo.php +++ b/hwe/sammo/API/General/GetFrontInfo.php @@ -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(), ]; } diff --git a/hwe/ts/defs/API/Global.ts b/hwe/ts/defs/API/Global.ts index 33674e9f..8e934dc4 100644 --- a/hwe/ts/defs/API/Global.ts +++ b/hwe/ts/defs/API/Global.ts @@ -133,6 +133,7 @@ export type GetFrontInfoResponse = { tournamentState: string; genCount: number; generalCntLimit: number; + serverCnt: number; lastVote: VoteInfo | null; }; general: GeneralListItemP1 & {