mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
final test
This commit is contained in:
@@ -27,15 +27,15 @@ export async function GetPercentageSteps(CrystalsCount) {
|
||||
}
|
||||
}
|
||||
|
||||
export async function GetUserData(SearchToken, AUTHTOKEN) {
|
||||
export async function GetUserData(AUTHTOKEN, SearchToken) {
|
||||
|
||||
const data = {
|
||||
AUTHTOKEN: AUTHTOKEN,
|
||||
SearchToken: SearchToken
|
||||
};
|
||||
};
|
||||
|
||||
try {
|
||||
const response = await fetch(`${BackendApiUrl}/Payment/UserMoney`, {
|
||||
const response = await fetch(`${BackendApiUrl}/GameMines/GetCurrentData`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
@@ -48,7 +48,6 @@ export async function GetUserData(SearchToken, AUTHTOKEN) {
|
||||
console.log('Fetch error:', response.status)
|
||||
}
|
||||
|
||||
console.log(response)
|
||||
return await response.json()
|
||||
}
|
||||
catch (error) {
|
||||
|
||||
@@ -175,29 +175,29 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
// created() {
|
||||
// // const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||
// // const SEARCHTOKEN = GetCookie('SearchToken')
|
||||
created() {
|
||||
// const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||
// const SEARCHTOKEN = GetCookie('SearchToken')
|
||||
|
||||
|
||||
// GetUserData(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||
// .then(response => {
|
||||
// console.log(response)
|
||||
// })
|
||||
// .catch((error) => {
|
||||
// console.error(error);
|
||||
// });
|
||||
GetUserData(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||
.then(response => {
|
||||
console.log(response)
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
// // GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||
// // .then((response) => {
|
||||
// // this.balance = response.currentMoney;
|
||||
// // console.log(response);
|
||||
// // })
|
||||
// // .catch((error) => {
|
||||
// // console.error(error);
|
||||
// // });
|
||||
// GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||
// .then((response) => {
|
||||
// this.balance = response.currentMoney;
|
||||
// console.log(response);
|
||||
// })
|
||||
// .catch((error) => {
|
||||
// console.error(error);
|
||||
// });
|
||||
|
||||
// },
|
||||
},
|
||||
watch: {
|
||||
async amountDeposit(DiamondCount) {
|
||||
if (DiamondCount >= 1) {
|
||||
|
||||
Reference in New Issue
Block a user