#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
#-------------------------------------------------------------------------------
|
#
|
##@package Player.RemoteQuery.GY_Query_GetCoinReq
|
#
|
# @todo:ÇëÇóµãȯ
|
# @author hxp
|
# @date 2015-5-27
|
# @version 1.1
|
#
|
# @change: "2016-08-22 16:30" hxp ·µ»ØÍæ¼ÒÃû¼°µÈ¼¶
|
#
|
# ÏêϸÃèÊö: ÇëÇóµãȯ
|
#
|
#---------------------------------------------------------------------
|
"""Version = 2016-08-22 16:30"""
|
#---------------------------------------------------------------------
|
|
import GameWorld
|
#---------------------------------------------------------------------
|
|
## ÇëÇóÂß¼
|
# @param query_Type ÇëÇóÀàÐÍ
|
# @param query_ID ÇëÇóµÄÍæ¼ÒID
|
# @param packCMDList ·¢°üÃüÁî [ ]
|
# @param tick µ±Ç°Ê±¼ä
|
# @return resultDisc
|
# @remarks º¯ÊýÏêϸ˵Ã÷.
|
def DoLogic(query_Type, query_ID, packCMDList, tick):
|
curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(query_ID)
|
|
if not curPlayer or curPlayer.IsEmpty():
|
return ''
|
|
if not curPlayer.GetMapLoadOK():
|
return ''
|
|
#²éѯµ±Ç°Íæ¼ÒµãȯÊýÄ¿
|
curPlayer.SendDBQueryRecharge()
|
|
playerInfoDict = {
|
'Name':curPlayer.GetPlayerName(), # Íæ¼ÒÃû
|
'LV':curPlayer.GetLV(), #Íæ¼ÒµÈ¼¶
|
}
|
GameWorld.DebugLog("GY_Query_GetCoinReq playerInfoDict=%s" % playerInfoDict)
|
resultMsg = str([packCMDList[0], playerInfoDict, 'GMT_GetCoinReq'])
|
GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'GMToolResult',
|
resultMsg, len(resultMsg))
|
return ''
|
|
|
|
|
|