autorun_user 초기 세팅

This commit is contained in:
2019-09-20 02:12:42 +09:00
parent 76c306a122
commit 53ba1db79f
6 changed files with 167 additions and 48 deletions
+6
View File
@@ -10,6 +10,12 @@ $userID = Session::getUserID();
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
$autorun_user = $gameStor->autorun_user;
if($autorun_user['limit_minutes']??false){
//자동 턴인 경우에는 휴가 불가
header('location:b_myPage.php', true, 303);
}
$killturn = $gameStor->killturn;
$db->update('general', [