mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
changed in wihdraw request claiming arguments
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
// import { Post } from '../rest/RestMethods.js';
|
// import { Post } from '../rest/RestMethods.js';
|
||||||
import { BackendApiUrl } from '@/properties/Сonfig.js';
|
import { BackendApiUrl } from '@/properties/Сonfig.js';
|
||||||
|
import {GetCookie} from "@/assets/js/storage/CookieStorage";
|
||||||
|
|
||||||
export async function GettingMoneyOperation(amount) {
|
export async function GettingMoneyOperation(amount) {
|
||||||
const data = {
|
const data = {
|
||||||
@@ -25,13 +26,15 @@ export async function GettingMoneyOperation(amount) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function WithdrawMoneyOperation(amount, card, captchaToken, searchToken, authToken) {
|
export async function WithdrawMoneyOperation(amount, card, captchaToken) {
|
||||||
const data = {
|
const data = {
|
||||||
amount: amount,
|
amount: amount,
|
||||||
card: card,
|
card: card,
|
||||||
reCaptchaToken: captchaToken,
|
reCaptchaToken: captchaToken,
|
||||||
searchToken: searchToken,
|
userCredentials: {
|
||||||
authtoken: authToken
|
searchToken: GetCookie('SearchToken'),
|
||||||
|
authtoken: GetCookie('AUTHTOKEN')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ export default {
|
|||||||
if(this.captchaToken !== '' && this.amountSave > 0) {
|
if(this.captchaToken !== '' && this.amountSave > 0) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken, GetCookie('SearchToken'), GetCookie('AUTHTOKEN')).then((response) => {
|
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => {
|
||||||
console.log(`work withdraw - ${response}`)
|
console.log(`work withdraw - ${response}`)
|
||||||
this.offBtn = false
|
this.offBtn = false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user