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,7 +27,7 @@ export async function GetPercentageSteps(CrystalsCount) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function GetUserData(SearchToken, AUTHTOKEN) {
|
export async function GetUserData(AUTHTOKEN, SearchToken) {
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
AUTHTOKEN: AUTHTOKEN,
|
AUTHTOKEN: AUTHTOKEN,
|
||||||
@@ -35,7 +35,7 @@ export async function GetUserData(SearchToken, AUTHTOKEN) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${BackendApiUrl}/Payment/UserMoney`, {
|
const response = await fetch(`${BackendApiUrl}/GameMines/GetCurrentData`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
@@ -48,7 +48,6 @@ export async function GetUserData(SearchToken, AUTHTOKEN) {
|
|||||||
console.log('Fetch error:', response.status)
|
console.log('Fetch error:', response.status)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(response)
|
|
||||||
return await response.json()
|
return await response.json()
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
|||||||
@@ -175,29 +175,29 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// created() {
|
created() {
|
||||||
// // const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
// const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||||
// // const SEARCHTOKEN = GetCookie('SearchToken')
|
// const SEARCHTOKEN = GetCookie('SearchToken')
|
||||||
|
|
||||||
|
|
||||||
// GetUserData(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
GetUserData(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||||
// .then(response => {
|
.then(response => {
|
||||||
// console.log(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) => {
|
// .catch((error) => {
|
||||||
// console.error(error);
|
// console.error(error);
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// // GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
},
|
||||||
// // .then((response) => {
|
|
||||||
// // this.balance = response.currentMoney;
|
|
||||||
// // console.log(response);
|
|
||||||
// // })
|
|
||||||
// // .catch((error) => {
|
|
||||||
// // console.error(error);
|
|
||||||
// // });
|
|
||||||
|
|
||||||
// },
|
|
||||||
watch: {
|
watch: {
|
||||||
async amountDeposit(DiamondCount) {
|
async amountDeposit(DiamondCount) {
|
||||||
if (DiamondCount >= 1) {
|
if (DiamondCount >= 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user