From 9e6207bd55a334561f1640ec109aa3481bcaa0f8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 18 三月 2026 19:17:31 +0800
Subject: [PATCH] 526 【挑战】PVP群英榜-后端(功能开启时补充挑战令到满,溢出不补;优化自身名次与上次匹配时的名次不同时强制重刷匹配;)

---
 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