final test

This commit is contained in:
Hepatica
2024-01-21 03:14:54 +01:00
parent 1e34ff841f
commit 154b6b2dd5
2 changed files with 22 additions and 23 deletions

View File

@@ -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) {