mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
delete console logs
This commit is contained in:
@@ -94,7 +94,6 @@ export default {
|
||||
GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||
.then((response) => {
|
||||
this.balance = response.currentMoney;
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
// Обработка ошибки
|
||||
|
||||
@@ -137,7 +137,6 @@ export default {
|
||||
|
||||
if (this.crashObject.Status === 'GameEnd' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) {
|
||||
this.startGame = false
|
||||
console.log('GAME OVER')
|
||||
this.updateUserMoney()
|
||||
}
|
||||
if (
|
||||
@@ -150,7 +149,6 @@ export default {
|
||||
this.startGame = true
|
||||
|
||||
let User = this.crashObject.Players.find(player => player.UserName === GetCookie('SpUserName'))
|
||||
console.log('ОБНОВЛЕНИЕ СТРАНИЦЫ')
|
||||
if (User) {
|
||||
this.amountDeposit = User.Bid
|
||||
User = null
|
||||
@@ -256,8 +254,6 @@ export default {
|
||||
|
||||
await JoinCrashGame(userData, this.amountDeposit)
|
||||
.then((response) => {
|
||||
console.log(this.balance)
|
||||
console.log(response)
|
||||
if (response === `You can't join to started or ended game` || response === 'Player alredy in the game.') {
|
||||
this.offBtn = false
|
||||
|
||||
@@ -309,7 +305,6 @@ export default {
|
||||
if (content === 'max') {
|
||||
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
|
||||
.then((response) => {
|
||||
console.log(response.currentMoney, this.balance)
|
||||
const responseBalance = response.currentMoney
|
||||
|
||||
if (responseBalance === this.balance) {
|
||||
|
||||
@@ -410,7 +410,6 @@ export default {
|
||||
GetCookie("AUTHTOKEN"),
|
||||
GetCookie("SearchToken")
|
||||
).then((response) => {
|
||||
console.log(response.currentMoney, this.balance);
|
||||
const responseBalance = response.currentMoney;
|
||||
|
||||
if (responseBalance === this.balance) {
|
||||
@@ -446,8 +445,6 @@ export default {
|
||||
};
|
||||
|
||||
await JoinJackpotGame(userData, this.amountDeposit).then((response) => {
|
||||
console.log(this.balance);
|
||||
console.log(response);
|
||||
if (
|
||||
response === `You can't join to started or ended game` ||
|
||||
response === "Player alredy in the game."
|
||||
@@ -526,7 +523,6 @@ export default {
|
||||
// Устанавливаем таймер, который сработает, когда игра должна закончиться
|
||||
setTimeout(() => {
|
||||
eventBus.emit("gameEnded"); // Транслируем событие окончания игры
|
||||
console.log("Game has ended");
|
||||
}, timeLeft);
|
||||
} else {
|
||||
console.log("Game has already ended");
|
||||
@@ -652,7 +648,6 @@ export default {
|
||||
},
|
||||
changeLastFiveImages() {
|
||||
const newImage = "https://avatar.spworlds.ru/face/55/Hepatir.png";
|
||||
console.log(this.slides);
|
||||
this.slides[9].img = newImage;
|
||||
},
|
||||
stopOnTarget(targetNickname) {
|
||||
@@ -672,11 +667,8 @@ export default {
|
||||
const dataObject = JSON.parse(data);
|
||||
this.winStake = dataObject.CurrentGame.WinStake;
|
||||
|
||||
console.log(dataObject);
|
||||
|
||||
if (dataObject.CurrentGame.GameState == "WaitingForPlayers") {
|
||||
console.log("Waiting for players");
|
||||
console.log("Put there earlies cards");
|
||||
|
||||
// if (dataObject.CurrentGame.GameState != "Running") {
|
||||
|
||||
@@ -697,7 +689,6 @@ export default {
|
||||
}
|
||||
if (dataObject.CurrentGame.GameState == "StartGameTimer") {
|
||||
if (!this.isGameTimerStarted) {
|
||||
console.log("Set players");
|
||||
this.idCurrentGame = dataObject.CurrentGame.Id;
|
||||
}
|
||||
this.mapPlayersToSlides(
|
||||
@@ -727,7 +718,6 @@ export default {
|
||||
}
|
||||
} else {
|
||||
// Если данные не определены или пусты, выводим соответствующее сообщение в консоль
|
||||
console.log("Received undefined or null data");
|
||||
}
|
||||
// console.log(dataFromServer);
|
||||
} catch (error) {
|
||||
|
||||
@@ -325,7 +325,6 @@ export default {
|
||||
async handler(value) {
|
||||
if (value.length < 1 || this.ValidationPlay.endGame === true) return
|
||||
const maxCircles = 25 - this.amountCrystals - this.gameTurn
|
||||
console.log(`MAXCIRLES - ${maxCircles} VALUE: ${value} GAMECIRCLE - ${this.gamesCircle}`)
|
||||
|
||||
if (this.gameStart !== false) {
|
||||
this.offEventPointers = false
|
||||
@@ -369,7 +368,6 @@ export default {
|
||||
console.error(e)
|
||||
}
|
||||
|
||||
console.log('---------ANSWER SERVER-----------', AnswerServer)
|
||||
console.log(LimitClicked, DepositDiamonds, X_Cordinates)
|
||||
this.gamesCircle = this.gamesCircle + 1
|
||||
this.offEventPointers = true
|
||||
@@ -430,7 +428,6 @@ export default {
|
||||
try {
|
||||
GetUserData(AUTHTOKEN, SEARCHTOKEN)
|
||||
.then(response => {
|
||||
console.log(response)
|
||||
if (response) {
|
||||
this.gameStart = true
|
||||
this.offEventPointers = true
|
||||
@@ -449,7 +446,6 @@ export default {
|
||||
})
|
||||
|
||||
soundStartGame.play()
|
||||
console.log(this.flippedCards.length)
|
||||
setTimeout(() => {
|
||||
this.ValidationPlay.startGame = false
|
||||
}, 2000)
|
||||
@@ -581,7 +577,6 @@ export default {
|
||||
if (content === 'max') {
|
||||
await GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
|
||||
.then((response) => {
|
||||
console.log(response.currentMoney, this.balance)
|
||||
const responseBalance = response.currentMoney
|
||||
|
||||
if (responseBalance === this.balance) {
|
||||
|
||||
Reference in New Issue
Block a user