parent
e76e4e4f8c
commit
3c71c71df1
src/stores
|
@ -24,8 +24,6 @@ export const tpvStore = defineStore('tpv', {
|
||||||
},
|
},
|
||||||
|
|
||||||
async pay(amount, company) {
|
async pay(amount, company) {
|
||||||
console.log('pay amount', amount);
|
|
||||||
console.log('pay company', company);
|
|
||||||
await this.realPay(amount * 100, company);
|
await this.realPay(amount * 100, company);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -41,8 +39,6 @@ export const tpvStore = defineStore('tpv', {
|
||||||
},
|
},
|
||||||
|
|
||||||
async realPay(amount, company) {
|
async realPay(amount, company) {
|
||||||
console.log('realPay amount', amount);
|
|
||||||
console.log('realPay company', company);
|
|
||||||
if (!isNumeric(amount) || amount <= 0) {
|
if (!isNumeric(amount) || amount <= 0) {
|
||||||
throw new Error('payAmountError');
|
throw new Error('payAmountError');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue