mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
change get method
This commit is contained in:
@@ -27,8 +27,8 @@ export async function GetCurrentMoney(authToken, searchToken) {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(`${BackendApiUrl}/Payment/GetCurrentMoney`, {
|
const response = await fetch(`${BackendApiUrl}/Payment/GetCurrentMoney`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
redirect: 'follow',
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
|
||||||
'AUTHTOKEN': authToken,
|
'AUTHTOKEN': authToken,
|
||||||
'SearchToken': searchToken
|
'SearchToken': searchToken
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,7 @@ export async function GetCurrentMoney(authToken, searchToken) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
console.log(data);
|
console.log(data);
|
||||||
return data;
|
return data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('There was a problem with the fetch operation:', error);
|
console.error('There was a problem with the fetch operation:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user