From 7bfb6497201c8c39bbb5351a39514d6e5acd08e0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 26 十一月 2021 19:02:06 +0800
Subject: [PATCH] 5278 【BT5】【bt5_1.100.1】【主干】GM后台充值流向记录错误(修复充值奖励物品直接转化为货币时会改变流向记录eventName的bug;去除后台充值失败邮件警告)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py | 3 ++-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
index 01f1121..39190d3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -366,7 +366,8 @@
SendEventPack("CTGError", dataDict, curPlayer)
GameWorld.ErrLog("%s. %s" % (errorInfo, addDict), curPlayer.GetPlayerID())
- GameWorld.SendGameError("GameWarning", "CTGError:%s - %s"%(errorInfo, dataDict))
+ if addDict.get('orderID'):
+ GameWorld.SendGameError("GameWarning", "CTGError:%s - %s"%(errorInfo, dataDict))
return
def DR_CTGOK(curPlayer, addDict):
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
index aa48ad0..df1ffa3 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
@@ -66,6 +66,7 @@
import CommFunc
import time
+import copy
# 充值点券处理类型
@@ -410,7 +411,7 @@
PlayerControl.GiveMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Money, prizeGold, eventName, addDRDict, isGiveBourseMoney=isAddBourseMoney)
if giveItemList:
- ItemControler.GivePlayerItemOrMail(curPlayer, giveItemList, "", event=[ChConfig.ItemGive_CTG, True, addDRDict])
+ ItemControler.GivePlayerItemOrMail(curPlayer, giveItemList, "", event=[ChConfig.ItemGive_CTG, True, copy.deepcopy(addDRDict)])
if notifyMark:
mainItemID = giveItemList[0][0]
PlayerControl.WorldNotify(0, notifyMark, [curPlayer.GetName(), mainItemID, ''])
--
Gitblit v1.8.0