diff --git a/luckydiamond/src/assets/js/games/saper/SaperAPI.js b/luckydiamond/src/assets/js/games/saper/SaperAPI.js index bf0bc92..12aafc6 100644 --- a/luckydiamond/src/assets/js/games/saper/SaperAPI.js +++ b/luckydiamond/src/assets/js/games/saper/SaperAPI.js @@ -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`, { diff --git a/luckydiamond/src/pages/games-pages/SapergamePage.vue b/luckydiamond/src/pages/games-pages/SapergamePage.vue index af56ebe..f9dfbc1 100644 --- a/luckydiamond/src/pages/games-pages/SapergamePage.vue +++ b/luckydiamond/src/pages/games-pages/SapergamePage.vue @@ -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) {