diff --git a/hwe/commandlist.php b/hwe/commandlist.php index 9662029b..35ec1877 100644 --- a/hwe/commandlist.php +++ b/hwe/commandlist.php @@ -78,7 +78,7 @@ function myCommandList() { $date = date('Y-m-d H:i:s'); // 명령 목록 - $admin = $gameStor->getValues(['year','month','turnterm','turntime']); + $admin = $gameStor->getValues(['year','month','turnterm','turntime','opentime']); $me = $db->queryFirstRow("SELECT `no`,turntime,term,turn0,turn1,turn2,turn3,turn4,turn5,turn6,turn7,turn8,turn9,turn10,turn11,turn12,turn13,turn14,turn15,turn16,turn17,turn18,turn19,turn20,turn21,turn22,turn23 FROM general WHERE `owner`=%s", $userID); if(!$me){ @@ -97,7 +97,7 @@ function myCommandList() { $month = $admin['month']; // 실행된 턴시간이면 +1 $cutTurn = cutTurn($me['turntime'], $admin['turnterm']); - if($date <= $cutTurn && $date < $admin['tuntime']) { $month++; } + if($date <= $cutTurn && $date >= $admin['opentime']) { $month++; } $totaldate = $me['turntime']; diff --git a/hwe/sammo/ResetHelper.php b/hwe/sammo/ResetHelper.php index e5e6d057..bf1bf6ef 100644 --- a/hwe/sammo/ResetHelper.php +++ b/hwe/sammo/ResetHelper.php @@ -228,6 +228,7 @@ class ResetHelper{ 'develcost'=>$develcost, 'turntime'=>$turntime, 'starttime'=>$starttime, + 'opentime'=>$turntime, 'turnterm'=>$turnterm, 'killturn'=>$killturn, 'genius'=>GameConst::$defaultMaxGenius,