즉시 사망 안되는 문제 해결
This commit is contained in:
+4
-3
@@ -196,8 +196,8 @@ else{
|
|||||||
|
|
||||||
$turntime = getRandTurn($admin['turnterm'], new \DateTimeImmutable($admin['turntime']));
|
$turntime = getRandTurn($admin['turnterm'], new \DateTimeImmutable($admin['turntime']));
|
||||||
|
|
||||||
$lastconnect = TimeUtil::now();
|
$now = date('Y-m-d H:i:s');
|
||||||
if ($lastconnect >= $turntime) {
|
if ($now >= $turntime) {
|
||||||
$turntime = addTurn($turntime, $admin['turnterm']);
|
$turntime = addTurn($turntime, $admin['turnterm']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,7 +241,8 @@ $db->insert('general', [
|
|||||||
'officer_level' => 0,
|
'officer_level' => 0,
|
||||||
'turntime' => $turntime,
|
'turntime' => $turntime,
|
||||||
'killturn' => 6,
|
'killturn' => 6,
|
||||||
'lastconnect' => $lastconnect,
|
'lastconnect' => $now,
|
||||||
|
'lastrefresh' => $now,
|
||||||
'crewtype'=>GameUnitConst::DEFAULT_CREWTYPE,
|
'crewtype'=>GameUnitConst::DEFAULT_CREWTYPE,
|
||||||
'makelimit' => 0,
|
'makelimit' => 0,
|
||||||
'age' => $age,
|
'age' => $age,
|
||||||
|
|||||||
@@ -919,7 +919,7 @@ class General implements iAction{
|
|||||||
'personal', 'special', 'special2', 'defence_train', 'tnmt', 'npc', 'npc_org', 'deadyear', 'npcmsg',
|
'personal', 'special', 'special2', 'defence_train', 'tnmt', 'npc', 'npc_org', 'deadyear', 'npcmsg',
|
||||||
'dex1', 'dex2', 'dex3', 'dex4', 'dex5', 'betray',
|
'dex1', 'dex2', 'dex3', 'dex4', 'dex5', 'betray',
|
||||||
'recent_war', 'last_turn', 'myset',
|
'recent_war', 'last_turn', 'myset',
|
||||||
'specage', 'specage2', 'con', 'connect', 'owner', 'aux'
|
'specage', 'specage2', 'con', 'connect', 'owner', 'aux', 'lastrefresh',
|
||||||
];
|
];
|
||||||
|
|
||||||
if($reqColumns === null){
|
if($reqColumns === null){
|
||||||
|
|||||||
Reference in New Issue
Block a user