mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed getting money in profile page
This commit is contained in:
@@ -75,12 +75,16 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.username = GetCookie('SpUserName')
|
this.username = GetCookie('SpUserName')
|
||||||
const authcode = GetCookie('AUTHTOKEN')
|
|
||||||
const searchtoken = GetCookie('SearchToken')
|
|
||||||
console.log('AUTHCODE AND SEARCH TOKEN - ', authcode, searchtoken)
|
|
||||||
|
|
||||||
this.balance = GetCurrentMoney(authcode, searchtoken)
|
GetCurrentMoney(GetCookie('AUTHTOKEN'), GetCookie('SearchToken'))
|
||||||
console.log('Created Hook - Profile page = balance = ', this.balance)
|
.then((response) => {
|
||||||
|
this.balance = response.currentMoney
|
||||||
|
console.log('balance in profile', this.balance)
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error('error in profile, get money', error)
|
||||||
|
})
|
||||||
|
|
||||||
this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
|
this.imageUrl = `https://visage.surgeplay.com/front/256/${this.username}`
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user