571 【荣耀战将】删档测试充值返利(增加验证其他服优先返利过的情况;)
1个文件已修改
10 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/Commands/GMT_DeleteTestRebate.py 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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]]