feat: 接口参数调整

This commit is contained in:
hzj 2025-11-19 14:11:24 +08:00
parent 6bfcc4855d
commit 3a898cf9fa
2 changed files with 4 additions and 19 deletions

View File

@ -908,12 +908,7 @@ const initializePayee = () => {
const fetchBankBalance = async () => { const fetchBankBalance = async () => {
loading.value = true loading.value = true
let salaryType = let salaryType = ['BD_LEADER', 'BD'].includes(identityStore.identity) ? 'BD_SALARY' : ''
identityStore.identity == 'BD_LEADER'
? 'BD_LEADER_SALARY'
: identityStore.identity == 'BD'
? 'BD_SALARY'
: ''
try { try {
const response = await apiGetBankBalance(salaryType) const response = await apiGetBankBalance(salaryType)
@ -1015,12 +1010,7 @@ const transfer = async () => {
const transferData = { const transferData = {
amount: selectedCoinData.price, amount: selectedCoinData.price,
acceptUserId: selectedPayee.id, acceptUserId: selectedPayee.id,
salaryType: salaryType: ['BD_LEADER', 'BD'].includes(identityStore.identity) ? 'BD_SALARY' : '',
identityStore.identity == 'BD_LEADER'
? 'BD_LEADER_SALARY'
: identityStore.identity == 'BD'
? 'BD_SALARY'
: '',
} }
try { try {
@ -1057,12 +1047,7 @@ const handleExchange = async () => {
// //
const response = await apiExchange({ const response = await apiExchange({
amount: selectedOption.cash, amount: selectedOption.cash,
salaryType: salaryType: ['BD_LEADER', 'BD'].includes(identityStore.identity) ? 'BD_SALARY' : '',
identityStore.identity == 'BD_LEADER'
? 'BD_LEADER_SALARY'
: identityStore.identity == 'BD'
? 'BD_SALARY'
: '',
}) })
if (response.status === true || response.errorCode === 0) { if (response.status === true || response.errorCode === 0) {

View File

@ -866,7 +866,7 @@ const apiGetBdLeaderHistory = async () => {
// //
const getBankBalance = async () => { const getBankBalance = async () => {
const res = await apiGetBankBalance('BD_LEADER_SALARY') const res = await apiGetBankBalance('BD_SALARY')
if (res.status && res.body) { if (res.status && res.body) {
salaryInfo.value = res.body || {} salaryInfo.value = res.body || {}
} }