From 9a11e62adeb8d435b52a361eb62d5b59e1deef2a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 23 五月 2024 21:14:50 +0800 Subject: [PATCH] 2024-05-23 --- src/api/index.js | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 09170ce..f1c531d 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -401,7 +401,7 @@ this.getSystemConfig(param).then(res => { if (!res.status) { - reject() + reject(res.message) return } @@ -441,7 +441,7 @@ CacheUtils.updateIndexDBversion({version: res.app_version || '1.00', createDate: curTime}) - resolve() + resolve(list) }) }, () => { reject() @@ -865,8 +865,8 @@ if (script) { try { // eslint-disable-next-line - let func = new Function('axios', 'Api', 'param', 'position', 'systemType', script) - let promise = func(axios, this, param, position, window.GLOB.systemType) + let func = new Function('axios', 'Api', 'param', 'position', 'systemType', 'notification', script) + let promise = func(axios, this, param, position, window.GLOB.systemType, notification) if (promise instanceof Promise) { return promise @@ -1061,6 +1061,21 @@ }) } + /** + * @description 寰俊鏀粯閫�娆� + */ + setRefund (orderId) { + let _param = new FormData() + _param.append('out_biz_no', orderId) + + return axios({ + url: '/wxpay/wxRefund', + headers: { 'Content-Type': 'multipart/form-data' }, + method: 'post', + data: _param + }) + } + postekPrint (data) { return axios({ url: 'http://127.0.0.1:888/postek/print', -- Gitblit v1.8.0