forked from devsam/core
feat: GetConst에서 버전 정보 반환
This commit is contained in:
@@ -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(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ export interface GetConstResponse {
|
||||
optionalPersonality: "personality";
|
||||
allItems: "item";
|
||||
};
|
||||
version: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user