|  |  | 
 |  |  | def OnExec(orderId, gmCmdDict):
 | 
 |  |  |     strMsg = ""
 | 
 |  |  |     gmCmdDict = ClearEmptyFromDict(gmCmdDict)
 | 
 |  |  |     GameWorld.DebugLog("GMT_AddPersonalCompensation gmCmdDict:%s" % gmCmdDict)
 | 
 |  |  |     queryType = gmCmdDict.get(GMCommon.Def_GMKey_QueryType, '')
 | 
 |  |  |     if queryType == GMCommon.Def_GMKey_FamilyID:
 | 
 |  |  |         sendFamilyIDList = []
 | 
 |  |  | 
 |  |  |         GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_InvalidTime)
 | 
 |  |  |         return
 | 
 |  |  |         
 | 
 |  |  |     MailType = int(gmCmdDict.get('MailType', '0'))
 | 
 |  |  |     Title = gmCmdDict.get('Title', '')
 | 
 |  |  |     Text = gmCmdDict.get('Text', '')
 | 
 |  |  |     GUID = str(uuid.uuid1())
 | 
 |  |  | 
 |  |  |     #    GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)
 | 
 |  |  |     #    return
 | 
 |  |  |     PlayerCompensation.AddPersonalItem(GUID, addItemDictList, PlayerIDList, 
 | 
 |  |  |                                        LimitTime, "%s<$_$>%s<$_$>%s"%(sender, Title, Text),
 | 
 |  |  |                                        LimitTime, PlayerCompensation.GetMailText(Title, Text, MailType, sender),
 | 
 |  |  |                                        gold, goldPaper, silver, detail=detail)
 | 
 |  |  |     
 | 
 |  |  |     #执行成功
 |