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