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

View File

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