diff --git a/src/api/wallet.js b/src/api/wallet.js index 8030d7b..c391309 100644 --- a/src/api/wallet.js +++ b/src/api/wallet.js @@ -1,4 +1,4 @@ -import {get, post} from '../utils/http.js' +import { get, post } from '../utils/http.js' /** * 获取钱包流水详情 @@ -42,15 +42,14 @@ export function userBankTransfer(data) { return post('/wallet/bank/transferGold', data) } - /** * 搜索用户资料 * @param {string} type - 用户类型 (AGENT/BD/ANCHOR) * @param {string} account - 用户账号/ID * @returns {Promise} 返回用户资料 */ -export function userBankSearchUserProfile(type, account) { - return get(`/wallet/bank/search/user-profile?type=${type}&account=${account}`) +export function userBankSearchUserProfile(account) { + return get(`/wallet/bank/search/user-profile?account=${account}&type=AGENT`) } /** @@ -152,7 +151,6 @@ export function getTeamApplyRecord(teamId, status) { return get(`/team/user/apply/record?teamId=${teamId}&status=${status}`) } - /** * 获取自己的申请记录 * @returns {Promise} 返回申请记录列表