Commit 6b7bb5c0 authored by Robin Borgogno's avatar Robin Borgogno

enlevage des console.log

parent 356da694
......@@ -36,9 +36,6 @@ class ResultController extends Controller {
case 'OPTIONS':
return Response::okresponse(json_encode("OPTIONS"));
// $data = json_decode(file_get_contents("php://input"),TRUE);
// return $this->deleteLine($data);
// break;
}
return Response::errorResponse("unsupported parameters or method in game");
......
......@@ -20,8 +20,6 @@ class Online extends Model {
$idmin = $res[0]->USER_ID;
if($id == $idmin){
$game = Online::getIdGame();
// print_r($game);
// exit;
if(count($game) == 1){
Online::deleteUserOnline(array(":id" => $id));
Game::addUserGame(array(":GAME_ID" => $game[0]->GAME_ID, ":USER_ID" => $id));
......@@ -30,8 +28,6 @@ class Online extends Model {
else {
$idgame = Game::createGame(array( ":GAME_DESC" => "Desc", ":private" => "0"));
Online::deleteUserOnline(array(":id" => $id));
// print_r($idgame);
// exit;
Game::addUserGame(array(":GAME_ID" => $idgame[0]->id, ":USER_ID" => $id));
return $idgame[0]->id;
......
......@@ -76,7 +76,7 @@ export default {
method: 'POST',
body : JSON.stringify(data) };
game.id=this.idgame;
let response = await fetch(url, params)
await fetch(url, params)
this.$router.push("/playerPrivate")
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment