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; }; }