fix: use salix for myTpvTransaction_end
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
parent
20293bd028
commit
1c3684c8c7
|
@ -1,5 +1,8 @@
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { jApi } from 'boot/axios';
|
import { jApi } from 'boot/axios';
|
||||||
|
import { inject } from 'vue';
|
||||||
|
|
||||||
|
const api = inject('api');
|
||||||
|
|
||||||
export const tpvStore = defineStore('tpv', {
|
export const tpvStore = defineStore('tpv', {
|
||||||
actions: {
|
actions: {
|
||||||
|
@ -8,10 +11,11 @@ export const tpvStore = defineStore('tpv', {
|
||||||
const status = route.query.tpvStatus;
|
const status = route.query.tpvStatus;
|
||||||
if (!(order && status)) return null;
|
if (!(order && status)) return null;
|
||||||
|
|
||||||
await jApi.execQuery('CALL myTpvTransaction_end(#order, #status)', {
|
|
||||||
order,
|
await api.post('applications/myTpvTransaction_end/execute-proc', new URLSearchParams({
|
||||||
status
|
schema: 'hedera',
|
||||||
});
|
params: `[${order}, ${status}]`,
|
||||||
|
}).toString());
|
||||||
|
|
||||||
if (status === 'ko') {
|
if (status === 'ko') {
|
||||||
const retry = confirm('retryPayQuestion');
|
const retry = confirm('retryPayQuestion');
|
||||||
|
|
Loading…
Reference in New Issue