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} 返回当前的余额信息