|  |  | 
 |  |  | #  @remarks 函数详细说明.
 | 
 |  |  | def OnExec(orderId, gmCmdDict):
 | 
 |  |  |     gmCmdDict = ClearEmptyFromDict(gmCmdDict)
 | 
 |  |  |      | 
 |  |  |     GameWorld.DebugLog("GMT_AddEntireCompensation gmCmdDict:%s" % gmCmdDict)
 | 
 |  |  |     LimitTime = gmCmdDict.get('EndTime', '2050-12-13 00:00:00')
 | 
 |  |  |     curServerTime = GameWorld.GetCurrentDataTimeStr()
 | 
 |  |  |     # 当前时间已经超过领取时间
 | 
 |  |  | 
 |  |  |         GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_InvalidTime)
 | 
 |  |  |         return
 | 
 |  |  |     
 | 
 |  |  |     MailType = int(gmCmdDict.get('MailType', '0'))
 | 
 |  |  |     Title = gmCmdDict.get('Title', '')
 | 
 |  |  |     Text = gmCmdDict.get('Text', '')
 | 
 |  |  |     GUID = gmCmdDict.get('GUID', '') # GM工具需要对全服邮件进行多服批量管理,所以这里GUID暂由GM工具决定
 | 
 |  |  | 
 |  |  |     #    GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)
 | 
 |  |  |     #    return
 | 
 |  |  |     PlayerCompensation.AddEntireItem(GUID, addItemDictList, LimitTime,
 | 
 |  |  |                                      mailInfo, PlayerJob, "%s<$_$>%s<$_$>%s"%(sender, Title, Text),
 | 
 |  |  |                                      mailInfo, PlayerJob, PlayerCompensation.GetMailText(Title, Text, MailType, sender),
 | 
 |  |  |                                      gold, goldPaper, silver, detail, serverID)
 | 
 |  |  | 
 | 
 |  |  |     #执行成功
 |