mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fix bug with money
This commit is contained in:
@@ -48,36 +48,23 @@ export default {
|
|||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
// Обработка ошибки
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
// let currentMoney = GetCurrentMoney(
|
|
||||||
// response.authtoken,
|
|
||||||
// response.searchToken
|
|
||||||
// );
|
|
||||||
// this.balance = currentMoney;
|
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
let currentUserName = GetCookie("SpUserName");
|
let currentUserName = GetCookie("SpUserName");
|
||||||
|
|
||||||
// let currentMoney = GetCurrentMoney(
|
|
||||||
// GetCookie("AUTHTOKEN"),
|
|
||||||
// GetCookie("SearchToken")
|
|
||||||
// ).then(response);
|
|
||||||
|
|
||||||
GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
GetCurrentMoney(GetCookie("AUTHTOKEN"), GetCookie("SearchToken"))
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.balance = response.currentMoney;
|
this.balance = response.currentMoney;
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
// Обработка ошибки
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (currentUserName) {
|
if (currentUserName) {
|
||||||
this.imageUrl = this.imageUrl + `${currentUserName}.png`;
|
this.imageUrl = this.imageUrl + `${currentUserName}.png`;
|
||||||
|
this.userName = GetCookie("SpUserName");
|
||||||
this.auth = true;
|
this.auth = true;
|
||||||
} else {
|
} else {
|
||||||
this.auth = false;
|
this.auth = false;
|
||||||
@@ -98,6 +85,7 @@ export default {
|
|||||||
|
|
||||||
if (currentUserName) {
|
if (currentUserName) {
|
||||||
this.imageUrl = this.imageUrl + `${currentUserName}.png`;
|
this.imageUrl = this.imageUrl + `${currentUserName}.png`;
|
||||||
|
this.userName = GetCookie("SpUserName");
|
||||||
this.auth = true;
|
this.auth = true;
|
||||||
} else {
|
} else {
|
||||||
this.auth = false;
|
this.auth = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user