#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package GM.Commands.GMT_CompensationQuery
|
#
|
# @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):
|
|
fromDate = gmCmdDict.get('FromDate', '')
|
toDate = gmCmdDict.get('ToDate', '')
|
guid = gmCmdDict.get('GUID', '')
|
searchTitle = gmCmdDict.get('SearchTitle', '')
|
searchContent = gmCmdDict.get('SearchContent', '')
|
searchState = GameWorld.ToIntDef(gmCmdDict.get('SearchState')) # 0-È«²¿£»1-ͨ¹ý£»2-δÉó
|
if searchState == 1:
|
searchState = PlayerCompensation.CheckState_OK
|
elif searchState == 2:
|
searchState = PlayerCompensation.CheckState_No
|
else:
|
searchState = None
|
maxCount = GameWorld.ToIntDef(gmCmdDict.get('MaxCount', ''), 5)
|
maxCount = min(20, maxCount)
|
|
queryRetList = PlayerCompensation.QueryCompensationInfo(fromDate, toDate, guid, searchTitle, searchContent, searchState, maxCount)
|
|
#Ö´Ðгɹ¦
|
GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_Success, queryRetList)
|
#Á÷Ïò
|
DataRecordPack.DR_ToolGMOperate(0, '', '', 'GMT_CompensationQuery', str(gmCmdDict))
|
return
|
|
|
|