From 157c8e92d59615dae5814c7e4de705ec93d6ef6d Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 8 May 2020 21:14:33 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A6=89=EC=8B=9C=20=EC=82=AC=EB=A7=9D=20?= =?UTF-8?q?=EC=95=88=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/join_post.php | 7 ++++--- hwe/sammo/General.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hwe/join_post.php b/hwe/join_post.php index 4bebac50..b0275a82 100644 --- a/hwe/join_post.php +++ b/hwe/join_post.php @@ -196,8 +196,8 @@ else{ $turntime = getRandTurn($admin['turnterm'], new \DateTimeImmutable($admin['turntime'])); -$lastconnect = TimeUtil::now(); -if ($lastconnect >= $turntime) { +$now = date('Y-m-d H:i:s'); +if ($now >= $turntime) { $turntime = addTurn($turntime, $admin['turnterm']); } @@ -241,7 +241,8 @@ $db->insert('general', [ 'officer_level' => 0, 'turntime' => $turntime, 'killturn' => 6, - 'lastconnect' => $lastconnect, + 'lastconnect' => $now, + 'lastrefresh' => $now, 'crewtype'=>GameUnitConst::DEFAULT_CREWTYPE, 'makelimit' => 0, 'age' => $age, diff --git a/hwe/sammo/General.php b/hwe/sammo/General.php index f73d5177..478ab12d 100644 --- a/hwe/sammo/General.php +++ b/hwe/sammo/General.php @@ -919,7 +919,7 @@ class General implements iAction{ 'personal', 'special', 'special2', 'defence_train', 'tnmt', 'npc', 'npc_org', 'deadyear', 'npcmsg', 'dex1', 'dex2', 'dex3', 'dex4', 'dex5', 'betray', 'recent_war', 'last_turn', 'myset', - 'specage', 'specage2', 'con', 'connect', 'owner', 'aux' + 'specage', 'specage2', 'con', 'connect', 'owner', 'aux', 'lastrefresh', ]; if($reqColumns === null){