From cfb5a319f61b20bb184fdb6923fad9f28db171e0 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 03 七月 2024 15:16:47 +0800 Subject: [PATCH] 10195 【香港】【越南】【主干】【砍树】新增消耗记录(代币获得、消耗记录;后台扣除货币支持扣代币;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameServerRefresh.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameServerRefresh.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameServerRefresh.py index 00976bb..e078916 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameServerRefresh.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameServerRefresh.py @@ -719,6 +719,9 @@ # DB推送过来的充值信息 def PushRecharge(index, tick): curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) + if not curPlayer or curPlayer.IsEmpty(): + #可能刚好下线导致玩家对象为空 + return cPlayerCoin = PlayerCoin.CPY_PlayerCoinToGold() cPlayerCoin.useCoin = curPlayer.GetOrderAmount() cPlayerCoin.orderID = curPlayer.GetOrderID() -- Gitblit v1.8.0