mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
павпавпававппвап
This commit is contained in:
@@ -28,10 +28,11 @@ export async function GetPercentageSteps(CrystalsCount) {
|
||||
}
|
||||
|
||||
export async function GetUserData(SearchToken, AUTHTOKEN) {
|
||||
|
||||
const data = {
|
||||
SearchToken: SearchToken,
|
||||
AUTHTOKEN: AUTHTOKEN
|
||||
}
|
||||
AUTHTOKEN: AUTHTOKEN,
|
||||
SearchToken: SearchToken
|
||||
};
|
||||
|
||||
try {
|
||||
const response = await fetch(`${BackendApiUrl}/Payment/UserMoney`, {
|
||||
|
||||
@@ -174,6 +174,30 @@ export default {
|
||||
modules: [ Navigation ]
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
// const AUTHTOKEN = GetCookie('AUTHTOKEN')
|
||||
// const SEARCHTOKEN = GetCookie('SearchToken')
|
||||
|
||||
|
||||
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);
|
||||
// });
|
||||
|
||||
},
|
||||
watch: {
|
||||
async amountDeposit(DiamondCount) {
|
||||
if (DiamondCount >= 1) {
|
||||
|
||||
Reference in New Issue
Block a user