fix 推币机桌面数据同步

This commit is contained in:
sk 2025-01-13 16:42:57 +08:00
parent 9bedfc1dfe
commit 046d5ea7fb
1 changed files with 5 additions and 1 deletions

View File

@ -213,7 +213,11 @@ func CSPushCoinPlayerOp(s *netlib.Session, packetid int, data interface{}, sid i
p.WelfData.PushCoin.Shake -= int32(msg.GetOpParam()) p.WelfData.PushCoin.Shake -= int32(msg.GetOpParam())
case activity.OpCodes_OP_Refresh: case activity.OpCodes_OP_Refresh:
UpdatePlayerPushCoin(p) if p.WelfData.PushCoin.Refresh <= 0 {
InitPlayerPushCoin(p)
} else {
UpdatePlayerPushCoin(p)
}
case activity.OpCodes_OP_Exchange: case activity.OpCodes_OP_Exchange:
d := srvdata.PBDB_PropExchangeMgr.GetData(int32(msg.GetOpParam())) d := srvdata.PBDB_PropExchangeMgr.GetData(int32(msg.GetOpParam()))