diff --git a/worldsrv/welfmgr.go b/worldsrv/welfmgr.go index 6432232..dc0c66b 100644 --- a/worldsrv/welfmgr.go +++ b/worldsrv/welfmgr.go @@ -1918,6 +1918,10 @@ func (this *WelfareMgr) UpdateDiamondBankData(p *Player, coinNum int64, isWin bo } return 0 } + + if p.WelfData.DiamondBank.DayBuyTimes == fGetPropValue("DayBuyMaxCntDiamond") { + return + } WinCoinRate := fGetPropValue("WinCoinRateDiamond") LoseCoinRate := fGetPropValue("LoseCoinRateDiamond") addDiamond := float64(0)