misc: Global/GetRecentRecord 잠금
This commit is contained in:
@@ -9,10 +9,9 @@ use sammo\KVStorage;
|
|||||||
use sammo\Util;
|
use sammo\Util;
|
||||||
use sammo\Validator;
|
use sammo\Validator;
|
||||||
|
|
||||||
use function sammo\increaseRefresh;
|
|
||||||
|
|
||||||
class GetRecentRecord extends \sammo\BaseAPI
|
class GetRecentRecord extends \sammo\BaseAPI
|
||||||
{
|
{
|
||||||
|
static bool $allowExternalAPI = false;
|
||||||
|
|
||||||
const ROW_LIMIT = 15;
|
const ROW_LIMIT = 15;
|
||||||
|
|
||||||
@@ -79,8 +78,6 @@ class GetRecentRecord extends \sammo\BaseAPI
|
|||||||
|
|
||||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||||
$gameStor->cacheValues(['isunited', 'opentime', 'refresh']);
|
$gameStor->cacheValues(['isunited', 'opentime', 'refresh']);
|
||||||
//TODO: 벌점에 소수점 적용 필요
|
|
||||||
increaseRefresh('API/Global/GetRecentRecord');
|
|
||||||
|
|
||||||
$lastHistoryID = $this->args['lastWorldHistoryID'];
|
$lastHistoryID = $this->args['lastWorldHistoryID'];
|
||||||
$lastRecordID = $this->args['lastGeneralRecordID'];
|
$lastRecordID = $this->args['lastGeneralRecordID'];
|
||||||
|
|||||||
+2
-2
@@ -155,10 +155,10 @@ const apiRealPath = {
|
|||||||
}, ExecuteResponse, InvalidResponse & {
|
}, ExecuteResponse, InvalidResponse & {
|
||||||
reqRefresh?: boolean
|
reqRefresh?: boolean
|
||||||
}>,
|
}>,
|
||||||
GetRecentRecord: GET as APICallT<{
|
/*GetRecentRecord: GET as APICallT<{
|
||||||
lastGeneralRecordID: number;
|
lastGeneralRecordID: number;
|
||||||
lastWorldHistoryID: number;
|
lastWorldHistoryID: number;
|
||||||
} | undefined, GetRecentRecordResponse>,
|
} | undefined, GetRecentRecordResponse>,*/
|
||||||
GetGlobalMenu: GET as APICallT<undefined, GetMenuResponse>,
|
GetGlobalMenu: GET as APICallT<undefined, GetMenuResponse>,
|
||||||
},
|
},
|
||||||
InheritAction: {
|
InheritAction: {
|
||||||
|
|||||||
Reference in New Issue
Block a user