mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
changed logic
This commit is contained in:
@@ -138,20 +138,9 @@ export default {
|
|||||||
console.log(`save amount = ${this.amountSave}`)
|
console.log(`save amount = ${this.amountSave}`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
captchaToken(TokenClaim) {
|
captchaToken(newAmount) {
|
||||||
if(TokenClaim !== '' && this.amountSave > 0) {
|
if (newAmount !== '' && this.amountSave > 0 && this.card !== '') {
|
||||||
this.offBtn = true
|
this.offBtn = false
|
||||||
setTimeout(() => {
|
|
||||||
try {
|
|
||||||
WithdrawMoneyOperation(this.amountSave, this.card.toString(), TokenClaim, GetCookie('SearchToken'), GetCookie('AUTHTOKEN')).then((response) => {
|
|
||||||
console.log(`work withdraw - ${response}`)
|
|
||||||
this.offBtn = false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
catch (e) {
|
|
||||||
console.error(`Error in wihdrawmoney operation - ${e}`)
|
|
||||||
}
|
|
||||||
}, 4000)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -172,7 +161,21 @@ export default {
|
|||||||
console.log(`From /profile to - ${this.url} url`)
|
console.log(`From /profile to - ${this.url} url`)
|
||||||
window.location.href = this.url
|
window.location.href = this.url
|
||||||
},
|
},
|
||||||
RedirectedMethodTransferMoneyToSp() {},
|
RedirectedMethodTransferMoneyToSp() {
|
||||||
|
if(this.captchaToken !== '' && this.amountSave > 0) {
|
||||||
|
setTimeout(() => {
|
||||||
|
try {
|
||||||
|
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken, GetCookie('SearchToken'), GetCookie('AUTHTOKEN')).then((response) => {
|
||||||
|
console.log(`work withdraw - ${response}`)
|
||||||
|
this.offBtn = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
console.error(`Error in wihdrawmoney operation - ${e}`)
|
||||||
|
}
|
||||||
|
}, 4000)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
onVerify: function (response) {
|
onVerify: function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|||||||
Reference in New Issue
Block a user