#!/usr/bin/python
|
# -*- coding: GBK -*-
|
|
##@package GMT_GetPlayerForbid.py
|
# Êý¾Ý¿âGMÃüÁîÖ´ÐÐ->Íæ¼Ò³Í·£Çé¿ö
|
#
|
# @author wdb
|
# @date 2012-06-14
|
# @version 1.1
|
#
|
# ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
|
# @change: "2012-07-12 18:00" wdb ×Ö·ûת»»ÔÚÈë¿Ú´¦Àí
|
# @note
|
# Ä£¿éÏêϸ˵
|
#½Å±¾ËµÃ÷
|
#---------------------------------------------------------------------
|
#µ¼Èë
|
import IPY_GameServer
|
import GMCommon
|
import ChConfig
|
import GameWorld
|
import DataRecordPack
|
#---------------------------------------------------------------------
|
#È«¾Ö±äÁ¿
|
#---------------------------------------------------------------------
|
VER = "2012-07-12 18:00"
|
#---------------------------------------------------------------------
|
#Â߼ʵÏÖ(ÕâÀïcurPlayer = None)
|
## Ö´ÐÐÂß¼
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param gmList [cmdIndex,gmAccID,forbidAcc,lastTime]
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def OnExec(orderId, gmCmdDict):
|
|
# »ñµÃ²¢×ª»»×Ö·û´®
|
playerName = gmCmdDict.get(GMCommon.Def_GMKey_PlayerName, '')
|
playerAccID = gmCmdDict.get(GMCommon.Def_GMKey_PlayerAccID, '')
|
|
playerFind = ''
|
# Õ˺ŽûÑÔ
|
if playerAccID != '':
|
queryType = ChConfig.queryType_sqtPlayerByAccID
|
playerFind = playerAccID
|
# Ãû×Ö½ûÑÔ
|
elif playerName != '':
|
playerFind = playerName
|
queryType = ChConfig.queryType_sqtPlayerByName
|
|
# ͨ¹ýÕ˺ÅËø¶¨
|
if playerFind != '':
|
GMCommon.GMTool_MapServer_Query(queryType, orderId, playerFind,
|
gmCmdDict, 'GMTPlayerForbid', [orderId], False)
|
return
|
|