2025-11-25 12:29:50 +08:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"blazing/common/socket/errorcode"
|
|
|
|
|
"blazing/logic/service/item"
|
|
|
|
|
"blazing/logic/service/player"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (h Controller) PlayerGoldCount(data *item.GoldOnlineRemainInboundInfo, c *player.Player) (result *item.GoldOnlineRemainOutboundInfo, err errorcode.ErrorCode) {
|
|
|
|
|
|
|
|
|
|
return &item.GoldOnlineRemainOutboundInfo{
|
|
|
|
|
|
2025-12-06 23:59:00 +08:00
|
|
|
GoldNumber: c.User.GetGold(uint(c.Info.UserID)),
|
2025-11-25 12:29:50 +08:00
|
|
|
Coin: c.Info.Coins,
|
|
|
|
|
}, 0
|
|
|
|
|
}
|
|
|
|
|
func (h Controller) PlayerExp(data *item.ExpTotalRemainInboundInfo, c *player.Player) (result *item.ExpTotalRemainOutboundInfo, err errorcode.ErrorCode) {
|
|
|
|
|
|
|
|
|
|
return &item.ExpTotalRemainOutboundInfo{
|
|
|
|
|
|
|
|
|
|
TotalExp: uint32(c.Info.ExpPool),
|
|
|
|
|
}, 0
|
|
|
|
|
}
|