| | |
| | | # @return None
|
| | | # @remarks 函数详细说明.
|
| | | def OnExec(orderId, gmCmdDict):
|
| | | strMsg = ""
|
| | | gmCmdDict = ClearEmptyFromDict(gmCmdDict)
|
| | | PlayerIDList = eval(gmCmdDict.get('PlayerIDList', '[]'))
|
| | | queryType = gmCmdDict.get(GMCommon.Def_GMKey_QueryType, '')
|
| | | if queryType == GMCommon.Def_GMKey_FamilyID:
|
| | | sendFamilyIDList = []
|
| | | PlayerIDList = []
|
| | | familyIDList = gmCmdDict.get("playerList", "").split(",")
|
| | | GameWorld.Log("发送仙盟邮件: familyIDList=%s" % familyIDList)
|
| | | for familyID in familyIDList:
|
| | | familyID = GameWorld.ToIntDef(familyID)
|
| | | familyInfo = {"familyID":familyID}
|
| | | memberIDList = []
|
| | | family = GameWorld.GetFamilyManager().FindFamily(familyID)
|
| | | if not family:
|
| | | GameWorld.DebugLog(" not family %s" % familyID)
|
| | | continue
|
| | | for index in range(family.GetCount()):
|
| | | curMember = family.GetAt(index)
|
| | | curMemberID = curMember.GetPlayerID()
|
| | | if curMemberID:
|
| | | memberIDList.append(curMemberID)
|
| | | PlayerIDList += memberIDList
|
| | | familyInfo["PlayerIDList"] = memberIDList
|
| | | sendFamilyIDList.append(familyInfo)
|
| | | GameWorld.Log(" send FamilyIDList=%s" % sendFamilyIDList)
|
| | | GameWorld.Log(" send PlayerIDList=%s" % PlayerIDList)
|
| | | strMsg = str(sendFamilyIDList)
|
| | | else:
|
| | | PlayerIDList = eval(gmCmdDict.get('PlayerIDList', '[]'))
|
| | | if PlayerIDList == []:
|
| | | GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr) |
| | | GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_ParamErr)
|
| | | return
|
| | |
|
| | | |
| | | LimitTime = gmCmdDict.get('EndTime', '2050-12-13 00:00:00')
|
| | |
|
| | | curServerTime = GameWorld.GetCurrentDataTimeStr()
|
| | |
| | | gold, goldPaper, silver, detail=detail)
|
| | |
|
| | | #执行成功
|
| | | GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success) |
| | | GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success, strMsg)
|
| | | # 流向
|
| | | DataRecordPack.DR_ToolGMOperate(0, '', '', 'GMT_AddPersonalCompensation', str(gmCmdDict))
|
| | | return
|