feat: GetConst에서 버전 정보 반환

This commit is contained in:
2023-03-22 22:54:47 +09:00
parent ca3e64f3b9
commit 9b4d5455e5
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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(),
];
}
+1
View File
@@ -38,6 +38,7 @@ export interface GetConstResponse {
optionalPersonality: "personality";
allItems: "item";
};
version: string;
};
}