| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.GMT_CompensationMgr  | 
| #  | 
| # @todo:²¹³¥¹ÜÀí  | 
| # @author hxp  | 
| # @date 2018-08-10  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ²¹³¥¹ÜÀí  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2018-08-10 12:00"""  | 
| #-------------------------------------------------------------------------------  | 
|   | 
|   | 
| #µ¼Èë  | 
| import DataRecordPack  | 
| import PlayerCompensation  | 
| import GMCommon  | 
| import GameWorld  | 
|   | 
| #---------------------------------------------------------------------  | 
|   | 
| ## Ö´ÐÐÂß¼  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param gmCmdDict: ÃüÁî×Öµä  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(orderId, gmCmdDict):  | 
|       | 
|     GUIDInfo = gmCmdDict.get('GUIDInfo', '')  | 
|     operation = GameWorld.ToIntDef(gmCmdDict.get('operation', 0)) # 1-ͨ¹ý£»2-ɾ³ý  | 
|     if not GUIDInfo:  | 
|         GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)  | 
|         return  | 
|     operGUIDList = GUIDInfo.split(",")  | 
|     if not operGUIDList:  | 
|         GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)  | 
|         return  | 
|           | 
|     if operation not in [1, 2]:  | 
|         GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)  | 
|         return  | 
|       | 
|     successGUIDList = PlayerCompensation.EntireCompensationOper(operGUIDList, operation)  | 
|       | 
|     #Ö´Ðгɹ¦  | 
|     GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success, {"successGUIDList":successGUIDList})  | 
|     #Á÷Ïò  | 
|     DataRecordPack.DR_ToolGMOperate(0, '', '', 'GMT_CompensationMgr', str(gmCmdDict))  | 
|     return  | 
|   | 
|   | 
|       |