fix: 연감 1개월차 수정

This commit is contained in:
2023-08-10 19:06:01 +09:00
parent d41246de9d
commit 6c4cb484da
+5 -5
View File
@@ -28,16 +28,16 @@ if ($serverID !== UniqueConst::$serverID) {
if($serverID === UniqueConst::$serverID){ if($serverID === UniqueConst::$serverID){
[$currentYear, $currentMonth] = $gameStor->getValuesAsArray(['year', 'month']); [$currentYear, $currentMonth] = $gameStor->getValuesAsArray(['year', 'month']);
if($f_year === null || $l_year === null){ if($f_year === null || $l_year === null){
$f_year = $currentYear; $f_year = $currentYear - 1;
$f_month = $currentMonth; $f_month = $currentMonth - 1;
$l_year = $currentYear; $l_year = $currentYear - 1;
$l_month = $currentMonth; $l_month = $currentMonth - 1;
} }
} }
else{ else{
[$currentYear, $currentMonth] = [$l_year, $l_month]; [$currentYear, $currentMonth] = [$l_year, $l_month];
if($f_year === null || $f_year === null){ if($f_year === null || $l_year === null){
die('잘못된 요청입니다.'); die('잘못된 요청입니다.');
} }
} }