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

enlevage des console.log

parent 356da694
...@@ -36,9 +36,6 @@ class ResultController extends Controller { ...@@ -36,9 +36,6 @@ class ResultController extends Controller {
case 'OPTIONS': case 'OPTIONS':
return Response::okresponse(json_encode("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"); return Response::errorResponse("unsupported parameters or method in game");
......
...@@ -20,8 +20,6 @@ class Online extends Model { ...@@ -20,8 +20,6 @@ class Online extends Model {
$idmin = $res[0]->USER_ID; $idmin = $res[0]->USER_ID;
if($id == $idmin){ if($id == $idmin){
$game = Online::getIdGame(); $game = Online::getIdGame();
// print_r($game);
// exit;
if(count($game) == 1){ if(count($game) == 1){
Online::deleteUserOnline(array(":id" => $id)); Online::deleteUserOnline(array(":id" => $id));
Game::addUserGame(array(":GAME_ID" => $game[0]->GAME_ID, ":USER_ID" => $id)); Game::addUserGame(array(":GAME_ID" => $game[0]->GAME_ID, ":USER_ID" => $id));
...@@ -30,8 +28,6 @@ class Online extends Model { ...@@ -30,8 +28,6 @@ class Online extends Model {
else { else {
$idgame = Game::createGame(array( ":GAME_DESC" => "Desc", ":private" => "0")); $idgame = Game::createGame(array( ":GAME_DESC" => "Desc", ":private" => "0"));
Online::deleteUserOnline(array(":id" => $id)); Online::deleteUserOnline(array(":id" => $id));
// print_r($idgame);
// exit;
Game::addUserGame(array(":GAME_ID" => $idgame[0]->id, ":USER_ID" => $id)); Game::addUserGame(array(":GAME_ID" => $idgame[0]->id, ":USER_ID" => $id));
return $idgame[0]->id; return $idgame[0]->id;
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
method: 'POST', method: 'POST',
body : JSON.stringify(data) }; body : JSON.stringify(data) };
game.id=this.idgame; game.id=this.idgame;
let response = await fetch(url, params) await fetch(url, params)
this.$router.push("/playerPrivate") 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