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