#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package PyMongoDB.GMToolLogicProcess.Commands.GMT_CompensationMgr # # @todo:GM¹¤¾ßÃüÁî - È«·þÓʼþ¹ÜÀí # @author hxp # @date 2025-06-04 # @version 1.0 # # ÏêϸÃèÊö: GM¹¤¾ßÃüÁî - È«·þÓʼþ¹ÜÀí # #------------------------------------------------------------------------------- #"""Version = 2025-06-04 15:00""" #------------------------------------------------------------------------------- import GMCommon import GameWorld import DataRecordPack import PlayerMail ## Ö´ÐÐÂß¼­ # @param curPlayer µ±Ç°Íæ¼Ò # @param gmCmdDict: ÃüÁî×Öµä # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def OnExec(gmCmdDict): GUIDInfo = gmCmdDict.get('GUIDInfo', '') operation = GameWorld.ToIntDef(gmCmdDict.get('operation', 0)) # 1-ͨ¹ý£»2-ɾ³ý if not GUIDInfo: return GMCommon.Def_ParamErr operGUIDList = GUIDInfo.split(",") if not operGUIDList: return GMCommon.Def_ParamErr if operation not in [1, 2]: return GMCommon.Def_ParamErr isOK = (operation == 1) for GUID in operGUIDList: PlayerMail.CheckServerMailResult(GUID, isOK) #Á÷Ïò GMT_Name = gmCmdDict.get(GMCommon.Def_GMKey_Type, '') DataRecordPack.DR_ToolGMOperate(0, '', '', GMT_Name, str(gmCmdDict)) return GMCommon.Def_Success