#!/usr/bin/python
|
# -*- coding: GBK -*-
|
|
##@package GY_Query_GetWarehousePsw
|
# ²Ö¿âÃÜÂë
|
#
|
# @author mark
|
# @date 2010-3-31
|
# @version 1.1
|
#
|
# @change: "2012-05-16 15:00" jiang C++Ð޸ĽӿÚGameServer_QueryPlayerByIDºÍGameServer_QueryPlayerResult
|
#
|
#------------------------------------------------------------------------------
|
"""Version = 2012-05-16 15:00"""
|
#---------------------------------------------------------------------
|
#µ¼Èë
|
import IPY_GameWorld
|
import ChConfig
|
import GameWorld
|
#---------------------------------------------------------------------
|
#È«¾Ö±äÁ¿
|
#---------------------------------------------------------------------
|
|
#---------------------------------------------------------------------
|
#Â߼ʵÏÖ
|
## ÇëÇóÂß¼
|
# @param query_Type ÇëÇóÀàÐÍ
|
# @param query_ID ÇëÇóµÄÍæ¼ÒID
|
# @param packCMDList ·¢°üÃüÁî [Êý¾Ý¿âGM²Ù×÷Ë÷Òý]
|
# @param tick µ±Ç°Ê±¼ä
|
# @return None or ""
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def DoLogic(query_Type , query_ID , packCMDList , tick):
|
curFindPlayer = GameWorld.GetPlayerManager().FindPlayerByID(query_ID)
|
|
if not curFindPlayer or curFindPlayer.IsEmpty():
|
return ''
|
|
gmOperIndex = packCMDList[0]
|
|
sendMsg = '%s'%(curFindPlayer.GetWarehousePsw())
|
|
#·¢Ëͽá¹ûµ½GameServer
|
curFindPlayer.GameServer_QueryPlayerByID( ChConfig.queryType_sqtDataServer_GMCommand ,
|
gmOperIndex, 'GetWarehousePsw', sendMsg, len(sendMsg))
|
return
|
|
|
#---------------------------------------------------------------------
|
#Ö´Ðнá¹û
|
## Ö´Ðнá¹û
|
# @param curPlayer ·¢³öÇëÇóµÄÍæ¼Ò
|
# @param callFunName ¹¦ÄÜÃû³Æ
|
# @param funResult ²éѯµÄ½á¹û
|
# @param tick µ±Ç°Ê±¼ä
|
# @return None
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def DoResult(curPlayer , callFunName , funResult , tick):
|
return
|
|
|