현재까지 작업 분량 반영

This commit is contained in:
2018-05-20 02:23:44 +09:00
parent fab0495a39
commit af9df325f0
13 changed files with 15 additions and 45 deletions
+2 -8
View File
@@ -9,16 +9,10 @@ $userID = Session::getUserID();
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$query = "select killturn from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$killturn = $gameStor->killturn;
$admin['killturn'] *= 3;
$query = "update general set killturn='{$admin['killturn']}' where owner='{$userID}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$db->update('general', ['killturn'=>$killturn*3], 'owner=%i', $userID);
header('location:b_myPage.php');