#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ##@package GM.Commands.GMT_DelPlayerItem # # @todo:GM¹¤¾ß¿Û³ýÍæ¼ÒÎïÆ· # @author hxp # @date 2021-03-18 # @version 1.0 # # ÏêϸÃèÊö: GM¹¤¾ß¿Û³ýÍæ¼ÒÎïÆ· # #------------------------------------------------------------------------------- #"""Version = 2021-03-18 19:00""" #------------------------------------------------------------------------------- import GMCommon import ChConfig import GameWorld #Âß¼­ÊµÏÖ(ÕâÀïcurPlayer = None) ## Ö´ÐÐÂß¼­ # @param curPlayer µ±Ç°Íæ¼Ò None # @param gmList [cmdIndex,gmAccID,forbidAccIP] # @return None # @remarks º¯ÊýÏêϸ˵Ã÷. def OnExec(orderId, gmCmdDict): GameWorld.Log("GMT_DelPlayerItem: %s" % gmCmdDict) playerFind = gmCmdDict.get(GMCommon.Def_GMKey_PlayerFind, '') queryType = gmCmdDict.get(GMCommon.Def_GMKey_QueryType, '') if queryType == 'accID': #Íæ¼ÒÕË»§ [] GMCommon.GMTool_MapServer_Query(ChConfig.queryType_sqtPlayerByAccID, orderId, playerFind, gmCmdDict, 'GMTDelPlayerItem', [orderId, gmCmdDict], False) return #Íæ¼ÒÃû×Ö [] GMCommon.GMTool_MapServer_Query(ChConfig.queryType_sqtPlayerByName, orderId, playerFind, gmCmdDict, 'GMTDelPlayerItem', [orderId, gmCmdDict], False) return