From 53569e3f12b6e03252f5ce60d6ba181e940fac31 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Tue, 7 Mar 2023 02:30:48 +0900 Subject: [PATCH] =?UTF-8?q?misc:=20Global/GetRecentRecord=20=EC=9E=A0?= =?UTF-8?q?=EA=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/API/Global/GetRecentRecord.php | 5 +---- hwe/ts/SammoAPI.ts | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hwe/sammo/API/Global/GetRecentRecord.php b/hwe/sammo/API/Global/GetRecentRecord.php index bf45b7a5..fdc8d865 100644 --- a/hwe/sammo/API/Global/GetRecentRecord.php +++ b/hwe/sammo/API/Global/GetRecentRecord.php @@ -9,10 +9,9 @@ use sammo\KVStorage; use sammo\Util; use sammo\Validator; -use function sammo\increaseRefresh; - class GetRecentRecord extends \sammo\BaseAPI { + static bool $allowExternalAPI = false; const ROW_LIMIT = 15; @@ -79,8 +78,6 @@ class GetRecentRecord extends \sammo\BaseAPI $gameStor = KVStorage::getStorage($db, 'game_env'); $gameStor->cacheValues(['isunited', 'opentime', 'refresh']); - //TODO: 벌점에 소수점 적용 필요 - increaseRefresh('API/Global/GetRecentRecord'); $lastHistoryID = $this->args['lastWorldHistoryID']; $lastRecordID = $this->args['lastGeneralRecordID']; diff --git a/hwe/ts/SammoAPI.ts b/hwe/ts/SammoAPI.ts index 0a771e93..fa46b9fb 100644 --- a/hwe/ts/SammoAPI.ts +++ b/hwe/ts/SammoAPI.ts @@ -155,10 +155,10 @@ const apiRealPath = { }, ExecuteResponse, InvalidResponse & { reqRefresh?: boolean }>, - GetRecentRecord: GET as APICallT<{ + /*GetRecentRecord: GET as APICallT<{ lastGeneralRecordID: number; lastWorldHistoryID: number; - } | undefined, GetRecentRecordResponse>, + } | undefined, GetRecentRecordResponse>,*/ GetGlobalMenu: GET as APICallT, }, InheritAction: {