From 4bb940c8c530d5359c1234e55c8dd109fadb4564 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 20 Aug 2025 12:59:40 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=3F=3F=20=EC=97=B0=EC=82=B0=EC=9E=90=20?= =?UTF-8?q?=EC=9A=B0=EC=84=A0=EC=88=9C=EC=9C=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_select_npc.php | 2 +- hwe/j_set_my_setting.php | 2 +- hwe/sammo/API/General/Join.php | 2 +- hwe/sammo/Command/Nation/che_초토화.php | 2 +- hwe/sammo/Constraint/AllowJoinDestNation.php | 2 +- hwe/ts/PartialReservedCommand.vue | 2 +- hwe/ts/components/ChiefReservedCommand.vue | 2 +- i_entrance/j_delete_me.php | 2 +- oauth_kakao/j_login_oauth.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hwe/j_select_npc.php b/hwe/j_select_npc.php index 84fdb15e..61cbcc01 100644 --- a/hwe/j_select_npc.php +++ b/hwe/j_select_npc.php @@ -41,7 +41,7 @@ $penaltyInfo = array_merge($memberPenalty['any'] ?? [], $memberPenalty[DB::prefi $penalty = []; foreach($penaltyInfo as $penaltyKey => $penaltyValue){ - if($penaltyValue['expire'] ?? 0 > TimeUtil::now()){ + if(($penaltyValue['expire'] ?? 0) > TimeUtil::now()){ $penalty[$penaltyKey] = $penaltyValue['value']; } } diff --git a/hwe/j_set_my_setting.php b/hwe/j_set_my_setting.php index f5a13dfd..81f66f0f 100644 --- a/hwe/j_set_my_setting.php +++ b/hwe/j_set_my_setting.php @@ -88,7 +88,7 @@ $penaltyInfo = array_merge($memberPenalty['any'] ?? [], $memberPenalty[DB::prefi $penalty = []; foreach ($penaltyInfo as $penaltyKey => $penaltyValue) { - if ($penaltyValue['expire'] ?? 0 > TimeUtil::now()) { + if (($penaltyValue['expire'] ?? 0) > TimeUtil::now()) { $penalty[$penaltyKey] = $penaltyValue['value']; } } diff --git a/hwe/sammo/API/General/Join.php b/hwe/sammo/API/General/Join.php index 82714f46..4b3a6142 100644 --- a/hwe/sammo/API/General/Join.php +++ b/hwe/sammo/API/General/Join.php @@ -157,7 +157,7 @@ class Join extends \sammo\BaseAPI $penalty = []; foreach($penaltyInfo as $penaltyKey => $penaltyValue){ - if($penaltyValue['expire'] ?? 0 > TimeUtil::now()){ + if(($penaltyValue['expire'] ?? 0) > TimeUtil::now()){ $penalty[$penaltyKey] = $penaltyValue['value']; } } diff --git a/hwe/sammo/Command/Nation/che_초토화.php b/hwe/sammo/Command/Nation/che_초토화.php index 1b7b4206..72124e47 100644 --- a/hwe/sammo/Command/Nation/che_초토화.php +++ b/hwe/sammo/Command/Nation/che_초토화.php @@ -162,7 +162,7 @@ class che_초토화 extends Command\NationCommand{ $aux = $this->nation['aux']; if($destCity['level'] >= 8){ - $aux[NationAuxKey::did_특성초토화->value] = $aux[NationAuxKey::did_특성초토화->value] ?? 0 + 1; + $aux[NationAuxKey::did_특성초토화->value] = ($aux[NationAuxKey::did_특성초토화->value] ?? 0) + 1; } $db->update('general', [ diff --git a/hwe/sammo/Constraint/AllowJoinDestNation.php b/hwe/sammo/Constraint/AllowJoinDestNation.php index 36e9c7b2..32467df1 100644 --- a/hwe/sammo/Constraint/AllowJoinDestNation.php +++ b/hwe/sammo/Constraint/AllowJoinDestNation.php @@ -50,7 +50,7 @@ class AllowJoinDestNation extends Constraint{ return false; } - if(($this->general['npc']??2 < 2) && \str_starts_with($this->destNation['name'], 'ⓤ')){ + if((($this->general['npc']??2) < 2) && \str_starts_with($this->destNation['name'], 'ⓤ')){ $this->reason = "유저장은 태수국에 임관할 수 없습니다."; return false; } diff --git a/hwe/ts/PartialReservedCommand.vue b/hwe/ts/PartialReservedCommand.vue index d75f13e5..9ae40697 100644 --- a/hwe/ts/PartialReservedCommand.vue +++ b/hwe/ts/PartialReservedCommand.vue @@ -510,7 +510,7 @@ async function reloadCommandList() { const turnTime = parseTime(result.turnTime); let nextTurnTime = new Date(turnTime); - const autorunLimitYearMonth = result.autorun_limit ?? yearMonth - 1; + const autorunLimitYearMonth = (result.autorun_limit ?? yearMonth) - 1; const [autorunLimitYear, autorunLimitMonth] = parseYearMonth(autorunLimitYearMonth); reservedCommandList.value = []; diff --git a/hwe/ts/components/ChiefReservedCommand.vue b/hwe/ts/components/ChiefReservedCommand.vue index 7dc5efcd..94ac76fd 100644 --- a/hwe/ts/components/ChiefReservedCommand.vue +++ b/hwe/ts/components/ChiefReservedCommand.vue @@ -509,7 +509,7 @@ function updateCommandList() { const turnTime = parseTime(props.turnTime); let nextTurnTime = new Date(turnTime); - const autorunLimitYearMonth = autorun_limit.value ?? yearMonth - 1; + const autorunLimitYearMonth = (autorun_limit.value ?? yearMonth) - 1; const [autorunLimitYear, autorunLimitMonth] = parseYearMonth(autorunLimitYearMonth); for (const obj of props.turn) { diff --git a/i_entrance/j_delete_me.php b/i_entrance/j_delete_me.php index c644de5c..1656a863 100644 --- a/i_entrance/j_delete_me.php +++ b/i_entrance/j_delete_me.php @@ -42,7 +42,7 @@ if($userInfo['delete_after']){ $penaltyList = Json::decode($userInfo['penalty']??'{}'); foreach($penaltyList as $penaltyKey=>$penaltyValue){ - if($penaltyValue['expire'] ?? 0 > TimeUtil::now()){ + if(($penaltyValue['expire'] ?? 0) > TimeUtil::now()){ Json::die([ 'result'=>false, 'reason'=>"징계가 남아있어 탈퇴할 수 없습니다." diff --git a/oauth_kakao/j_login_oauth.php b/oauth_kakao/j_login_oauth.php index 2612696e..69d2ef4e 100644 --- a/oauth_kakao/j_login_oauth.php +++ b/oauth_kakao/j_login_oauth.php @@ -133,7 +133,7 @@ $userInfo = $RootDB->queryFirstRow( if (!$userInfo) { if(!$oauthID){ $me = $restAPI->meWithEmail(); - if ($me['code']??0 < 0) { + if (($me['code']??0) < 0) { Json::die([ 'result' => false, 'reqOTP' => false,