refac, wip: con -> refreshScore

This commit is contained in:
2023-07-07 10:57:52 +00:00
parent c9dd873019
commit 49429e1e7e
39 changed files with 209 additions and 149 deletions
+3 -3
View File
@@ -174,7 +174,7 @@ class GetFrontInfo extends \sammo\BaseAPI
'online_nation', 'online_user_cnt',
'year', 'month', 'startyear',
'maxgeneral',
'conlimit',
'refreshLimit',
'server_cnt',
]);
@@ -537,8 +537,8 @@ class GetFrontInfo extends \sammo\BaseAPI
$nationID = $general->getNationID();
$cityID = $general->getCityID();
$con = checkLimit($general->getVar('con'));
if ($con >= 2) {
$limitState = checkLimit($general->getVar('refresh_score') ?? 0);
if ($limitState >= 2) {
return [
'result' => false,
'reason' => '접속 제한중입니다.',