|
@@ -280,7 +280,7 @@ func GetWithdrawApplyList(c *gin.Context) { |
|
|
UserIDs := make([]int64, len(*applies)) |
|
|
UserIDs := make([]int64, len(*applies)) |
|
|
for _, apply := range *applies { |
|
|
for _, apply := range *applies { |
|
|
parentIDs = append(parentIDs, apply.ParentID) |
|
|
parentIDs = append(parentIDs, apply.ParentID) |
|
|
UserIDs = append(UserIDs, apply.UserID) |
|
|
|
|
|
|
|
|
UserIDs = append(UserIDs, apply.Uid) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询上级 |
|
|
// 查询上级 |
|
@@ -326,8 +326,8 @@ func GetWithdrawApplyList(c *gin.Context) { |
|
|
|
|
|
|
|
|
for i, apply := range *applies { |
|
|
for i, apply := range *applies { |
|
|
list[i] = md.GetWithdrawApplyListNode{ |
|
|
list[i] = md.GetWithdrawApplyListNode{ |
|
|
WithdrawApplyId: apply.WithdrawApplyId, |
|
|
|
|
|
UserID: apply.UserID, |
|
|
|
|
|
|
|
|
WithdrawApplyId: apply.Id, |
|
|
|
|
|
UserID: apply.Uid, |
|
|
Nickname: apply.Nickname, |
|
|
Nickname: apply.Nickname, |
|
|
ParentID: apply.ParentID, |
|
|
ParentID: apply.ParentID, |
|
|
AliPayName: apply.AliPayName, |
|
|
AliPayName: apply.AliPayName, |
|
@@ -338,14 +338,14 @@ func GetWithdrawApplyList(c *gin.Context) { |
|
|
InviteCode: apply.InviteCode, |
|
|
InviteCode: apply.InviteCode, |
|
|
Amount: apply.Amount, |
|
|
Amount: apply.Amount, |
|
|
ActualReceipt: apply.RealAmount, |
|
|
ActualReceipt: apply.RealAmount, |
|
|
SysFee: apply.SysFee, |
|
|
|
|
|
|
|
|
SysFee: apply.Fee, |
|
|
State: apply.State, |
|
|
State: apply.State, |
|
|
ApplyAt: apply.ApplyAt, |
|
|
|
|
|
PayAt: apply.PayAt, |
|
|
|
|
|
|
|
|
ApplyAt: apply.CreateAt, |
|
|
|
|
|
PayAt: apply.UpdateAt, |
|
|
Memo: apply.Memo, |
|
|
Memo: apply.Memo, |
|
|
} |
|
|
} |
|
|
if apply.Amount != "" && apply.SysFee != "" { |
|
|
|
|
|
actualReceipt := utils.StrToFloat64(apply.Amount) - utils.StrToFloat64(apply.SysFee) |
|
|
|
|
|
|
|
|
if apply.Amount != "" && apply.Fee != "" { |
|
|
|
|
|
actualReceipt := utils.StrToFloat64(apply.Amount) - utils.StrToFloat64(apply.Fee) |
|
|
list[i].ActualReceipt = utils.Float64ToStr(actualReceipt) |
|
|
list[i].ActualReceipt = utils.Float64ToStr(actualReceipt) |
|
|
} |
|
|
} |
|
|
if apply.ParentID != 0 { |
|
|
if apply.ParentID != 0 { |
|
@@ -354,7 +354,7 @@ func GetWithdrawApplyList(c *gin.Context) { |
|
|
list[i].ParentPhone = v.Phone |
|
|
list[i].ParentPhone = v.Phone |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
tagList, ok := recordsMap[apply.UserID] |
|
|
|
|
|
|
|
|
tagList, ok := recordsMap[apply.Uid] |
|
|
if ok { |
|
|
if ok { |
|
|
list[i].Tag = tagList |
|
|
list[i].Tag = tagList |
|
|
} |
|
|
} |
|
|