修改充值功能

This commit is contained in:
rain
2026-07-30 09:49:00 +08:00
parent a178111378
commit da89fa578b
2 changed files with 11 additions and 1 deletions
+2
View File
@@ -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);
+9 -1
View File
@@ -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': {