This commit is contained in:
hahwu 2025-08-29 12:03:45 +08:00
parent 58be1191c5
commit d5470cd69e

View File

@ -264,7 +264,14 @@ func (c *ChargeMod) BackData() *msg.ResCharge {
ChessId: int32(v.Id),
}
}
resWish := &msg.WishList{}
if c.WishList != nil {
resWish = &msg.WishList{
Id: int32(c.WishList.ItemId),
Count: int32(c.WishList.Count),
Uid: c.WishList.SendList,
}
}
return &msg.ResCharge{
Charge: float32(c.Charge),
Total: int32(c.Total),
@ -278,11 +285,7 @@ func (c *ChargeMod) BackData() *msg.ResCharge {
SpecialChargeWeek: int32(GoUtil.FullWeeksSince(c.LastSpecialCharge)),
TodayCharge: float32(c.TodayCharge),
MonthCharge: float32(c.MonthCharge),
Wish: &msg.WishList{
Id: int32(c.WishList.ItemId),
Count: int32(c.WishList.Count),
Uid: c.WishList.SendList,
},
Wish: resWish,
}
}