From 9b4d5455e51198b6b35197b9551877dd11fff6ca Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 22 Mar 2023 22:54:47 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20GetConst=EC=97=90=EC=84=9C=20=EB=B2=84?= =?UTF-8?q?=EC=A0=84=20=EC=A0=95=EB=B3=B4=20=EB=B0=98=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/Global/GetConst.php | 3 ++- hwe/ts/defs/API/Global.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/API/Global/GetConst.php b/hwe/sammo/API/Global/GetConst.php index c7eec783..c5822380 100644 --- a/hwe/sammo/API/Global/GetConst.php +++ b/hwe/sammo/API/Global/GetConst.php @@ -21,7 +21,7 @@ use function sammo\prepareDir; class GetConst extends \sammo\BaseAPI { /** 반환하는 StaticValues 타입이 달라지면 +1 */ - const CONST_API_VERSION = 2; + const CONST_API_VERSION = 3; const CACHE_KEY = 'JSConst'; private ?string $cacheKey = null; @@ -277,6 +277,7 @@ class GetConst extends \sammo\BaseAPI ], 'iActionInfo' => $iActionInfo, 'iActionKeyMap' => $iActionKeyMap, + 'version' => VersionGit::getVersion(), ]; } diff --git a/hwe/ts/defs/API/Global.ts b/hwe/ts/defs/API/Global.ts index 1a7d31f5..6883bb6b 100644 --- a/hwe/ts/defs/API/Global.ts +++ b/hwe/ts/defs/API/Global.ts @@ -38,6 +38,7 @@ export interface GetConstResponse { optionalPersonality: "personality"; allItems: "item"; }; + version: string; }; }