From 055981a4685a066e17813fcbb8ce294e83fb7e18 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 18 三月 2026 18:00:34 +0800
Subject: [PATCH] 571 【荣耀战将】删档测试充值返利(增加验证其他服优先返利过的情况;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_DeleteTestRebate.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_DeleteTestRebate.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_DeleteTestRebate.py
index 94a3658..0f1a423 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_DeleteTestRebate.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_DeleteTestRebate.py
@@ -56,11 +56,17 @@
if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DeleteTestRebate):
return GMCommon.Def_Unknow, "already rebate."
- accountPayTotal = GameWorld.ToNumDef(gmCmdDict.get('accountPayTotal', '0'), 0) # 单位,元,支持小数
- GameWorld.Log("删档测试充值总额: %s" % accountPayTotal, curPlayer.GetPlayerID())
# 只要有收到同步,该角色就标记为已处理,如有异常再进行手动补偿
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DeleteTestRebate, 1)
+ rebateServerID = GameWorld.ToIntDef(gmCmdDict.get('rebateServerID', '0'))
+ if rebateServerID > 0:
+ GameWorld.Log("删档测试充值返利返回已经在其他服务器返利过了: rebateServerID=%s" % rebateServerID, curPlayer.GetPlayerID())
+ return GMCommon.Def_Success
+
+ accountPayTotal = GameWorld.ToNumDef(gmCmdDict.get('accountPayTotal', '0'), 0) # 单位,元,支持小数
+ GameWorld.Log("删档测试充值总额: %s" % accountPayTotal, curPlayer.GetPlayerID())
+
if accountPayTotal > 0:
rebateMoney = int(accountPayTotal * rebateRate / 100.0 * 100) # 除100为百分比,乘100为coin比例
itemList = [[itemID, rebateMoney]]
--
Gitblit v1.8.0