From 59bf3aaacaacc1beafba63cdfe0ec3bbd05fd4f4 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 20 Mar 2026 17:17:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=94=B6=E6=94=AF=E6=8E=A5=E5=8F=A3):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8E=B7=E5=8F=96=E6=8F=90=E7=8E=B0=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wallet.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/api/wallet.js b/src/api/wallet.js index 0f4a39d..cd6799c 100644 --- a/src/api/wallet.js +++ b/src/api/wallet.js @@ -54,7 +54,7 @@ export function userBankSearchUserProfile(account, searchType = '') { return get(`/wallet/bank/search/user-profile?account=${account}&type=AGENT`) } else { return get( - `/wallet/bank/search/user-profile?account=${account}&type=AGENT&searchType=${searchType}` + `/wallet/bank/search/user-profile?account=${account}&type=AGENT&searchType=${searchType}`, ) } } @@ -127,7 +127,7 @@ export function freightRecharge(data) { export const getFreightWaterFlow = async (data) => { try { const response = await get( - `/wallet/freight/balance/running/water/client/flowByUserId?userId=${data.userId}&type=${data.type}&searchId=${data.searchId}&lastId=${data.lastId}` + `/wallet/freight/balance/running/water/client/flowByUserId?userId=${data.userId}&type=${data.type}&searchId=${data.searchId}&lastId=${data.lastId}`, ) return response } catch (error) { @@ -363,6 +363,18 @@ export const apiGetWithdrawRecords = async () => { } } +// 获取提现权限 +export const apiGetWithdrawEnabled = async () => { + try { + const response = await get(`/wallet/bank/host-salary/withdraw/enabled`) + return response + } catch (error) { + console.error('Failed to fetch get all withdraw records:', error) + console.error('error:' + error.response.errorMsg) + throw error + } +} + /** * 获取当前余额 * @returns {Promise} 返回当前的余额信息