From da89fa578b013b19887e066bccf75976cddac0df Mon Sep 17 00:00:00 2001 From: rain Date: Thu, 30 Jul 2026 09:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=85=E5=80=BC=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/chongzhi.html | 2 ++ utils/ApiClient.js | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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': {