This commit is contained in:
@@ -117,7 +117,7 @@ func (h Controller) BuyGoldItem(data *item.C2S_GOLD_BUY_PRODUCT, player *player.
|
||||
return nil, errorcode.ErrorCodes.ErrSystemError
|
||||
}
|
||||
|
||||
if !player.UseGold(uint32(data.Count) * uint32(pro.JindouPrice) * 100) {
|
||||
if !player.UseGold(int64(data.Count) * int64(pro.JindouPrice) * 100) {
|
||||
return nil, errorcode.ErrorCodes.ErrSystemError
|
||||
}
|
||||
usegold = uint64(data.Count) * uint64(pro.JindouPrice*100)
|
||||
@@ -138,7 +138,7 @@ func (h Controller) BuyGoldItem(data *item.C2S_GOLD_BUY_PRODUCT, player *player.
|
||||
|
||||
player.SendPackCmd(1105, item.GoldOnlineRemainOutboundInfo{
|
||||
Coin: player.Info.Coins,
|
||||
GoldNumber: player.User.GetGold(uint(player.Info.UserID)),
|
||||
GoldNumber: uint32(player.User.GetGold(uint(player.Info.UserID))),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user