金币代理转账问题修复
This commit is contained in:
parent
c8c0301e22
commit
774e501437
@ -156,8 +156,7 @@ const performSearch = async () => {
|
||||
if (response && response.status && response.body && response.body.userProfile) {
|
||||
const profile = response.body.userProfile
|
||||
searchResults.value = [{
|
||||
id: profile.account || profile.id,
|
||||
userId: profile.id, // 保存数值型ID用于接口调用
|
||||
id: profile.id,
|
||||
name: profile.userNickname || 'User',
|
||||
userNickname: profile.userNickname,
|
||||
account: profile.account,
|
||||
@ -205,7 +204,6 @@ const confirmSelection = () => {
|
||||
// Save selected user info to global state
|
||||
setSelectedUser({
|
||||
id: selectedUser.value.id,
|
||||
userId: selectedUser.value.userId, // Numeric ID
|
||||
name: selectedUser.value.name,
|
||||
userNickname: selectedUser.value.userNickname,
|
||||
account: selectedUser.value.account,
|
||||
|
||||
@ -200,7 +200,7 @@ const rechargeNow = async () => {
|
||||
}
|
||||
|
||||
// 需要获取接收用户的ID(从用户搜索结果中获取)
|
||||
const acceptUserId = selectedUser.value.userId || selectedUser.value.id
|
||||
const acceptUserId = selectedUser.value.id
|
||||
if (!acceptUserId) {
|
||||
showError('The user ID cannot be obtained. Please select the user again')
|
||||
return
|
||||
@ -210,7 +210,7 @@ const rechargeNow = async () => {
|
||||
isRecharging.value = true
|
||||
|
||||
const rechargeData = {
|
||||
acceptUserId: parseInt(acceptUserId),
|
||||
acceptUserId: acceptUserId,
|
||||
quantity: amount
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user