mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
test
This commit is contained in:
@@ -135,7 +135,8 @@
|
|||||||
import ChatComponent from "@/components/ChatComponent.vue";
|
import ChatComponent from "@/components/ChatComponent.vue";
|
||||||
import AsideBarElement from "@/components/AsidebarComponent.vue";
|
import AsideBarElement from "@/components/AsidebarComponent.vue";
|
||||||
import HeaderElementPage from "@/components/HeaderComponent.vue";
|
import HeaderElementPage from "@/components/HeaderComponent.vue";
|
||||||
import { GetPercentageSteps, GetUserData } from "@/assets/js/games/saper/SaperAPI";
|
import {GetUserData } from "@/assets/js/games/saper/SaperAPI";
|
||||||
|
// import { GetPercentageSteps, GetUserData } from "@/assets/js/games/saper/SaperAPI";
|
||||||
import { GetCookie } from "@/assets/js/storage/CookieStorage";
|
import { GetCookie } from "@/assets/js/storage/CookieStorage";
|
||||||
|
|
||||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||||
@@ -198,14 +199,14 @@ export default {
|
|||||||
this.amountSaveCrystals = CrystalsCount
|
this.amountSaveCrystals = CrystalsCount
|
||||||
this.ValidationPlay.CrystalValidate = true
|
this.ValidationPlay.CrystalValidate = true
|
||||||
try {
|
try {
|
||||||
await GetPercentageSteps(this.amountSaveCrystals)
|
const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||||
.then((response) => {
|
const SEARCHTOKEN = GetCookie('SearchToken')
|
||||||
response.forEach((item) => {
|
|
||||||
if (item !== 'Infinity' && item !== '-Infinity') {
|
|
||||||
this.PercentageGameSteps.push(Number(item))
|
GetUserData(AUTHTOKEN, SEARCHTOKEN)
|
||||||
}
|
.then(response => {
|
||||||
})
|
console.log(response)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.error('Error in Percantage', e)
|
console.error('Error in Percantage', e)
|
||||||
@@ -213,22 +214,22 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
// created() {
|
||||||
const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
// const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||||
const SEARCHTOKEN = GetCookie('SearchToken')
|
// const SEARCHTOKEN = GetCookie('SearchToken')
|
||||||
|
|
||||||
if (AUTHTOKEN !== null && SEARCHTOKEN !== null) {
|
// if (AUTHTOKEN !== null && SEARCHTOKEN !== null) {
|
||||||
try {
|
// try {
|
||||||
GetUserData(AUTHTOKEN, SEARCHTOKEN)
|
// GetUserData(AUTHTOKEN, SEARCHTOKEN)
|
||||||
.then(response => {
|
// .then(response => {
|
||||||
console.log(response)
|
// console.log(response)
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
catch (e) {
|
// catch (e) {
|
||||||
console.error('Error in GetData', e)
|
// console.error('Error in GetData', e)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
clickPlayButton() {
|
clickPlayButton() {
|
||||||
if(!this.validationCheck()) {
|
if(!this.validationCheck()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user