changed in wihdraw request claiming arguments

This commit is contained in:
Kostya
2023-12-19 18:25:28 +03:00
parent 8f88e9beb9
commit dac137e02e
2 changed files with 7 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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
}) })