diff --git a/html/chongzhi.html b/html/chongzhi.html index fe89e64..872520b 100644 --- a/html/chongzhi.html +++ b/html/chongzhi.html @@ -396,6 +396,8 @@ ApiClient.post(ApiClient.API.walletRechargeOrder, { rechargeId: selectedConfigId, + payType: "NATIVE", + returnUrl: window.location.href, }) .then(function (res) { $btn.text("\u7acb\u5373\u5145\u503c").prop("disabled", false); diff --git a/utils/ApiClient.js b/utils/ApiClient.js index d45813b..06dba34 100644 --- a/utils/ApiClient.js +++ b/utils/ApiClient.js @@ -580,7 +580,15 @@ const ApiClient = { '/api/web/user/signIn/getPageList': { url: '/api/web/mine/sign-in/list', method: 'GET', data: pageParams }, '/api/web/capitalFlow/getPageList': { url: '/api/web/wallet/flow/list', method: 'GET', data: pageParams }, '/api/web/payment/getConfigList': { url: '/api/web/wallet/recharge/config/list', method: 'GET', data: null }, - '/api/web/payment/charge/native': { url: '/api/web/wallet/recharge/order', method: 'POST', data }, + '/api/web/payment/charge/native': { + url: '/api/web/wallet/recharge/order', + method: 'POST', + data: Object.assign({}, data || {}, { + rechargeId: data && (data.rechargeId || data.configId), + payType: 'NATIVE', + returnUrl: typeof window !== 'undefined' ? window.location.href : '' + }) + }, '/api/web/freeArticle/getPageListByUser': { url: '/api/web/mine/free-article/list', method: 'GET', data: pageParams }, '/api/web/freeArticle/push': { url: '/api/web/free-article/publish', method: 'POST', data }, '/api/web/payArticle/push': {