#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#---------------------------------------------------------------------
|
#
|
#---------------------------------------------------------------------
|
##@package GMT_LockIP.py
|
# GMÃüÁîËø¶¨IP
|
#
|
# @author whx
|
# @date 2012-08-10 17:00
|
# @version 1.0
|
#
|
# @note
|
#---------------------------------------------------------------------
|
"""Version = 2012-08-10 17:00"""
|
#---------------------------------------------------------------------
|
#µ¼Èë
|
import GMCommon
|
#---------------------------------------------------------------------
|
#È«¾Ö±äÁ¿
|
|
#---------------------------------------------------------------------
|
|
## ÊÕµ½gmÃüÁîÖ´ÐÐ
|
# @param gmCmdDict:gmÃüÁî×Öµä
|
# @return None
|
def OnExec(gmCmdDict):
|
loginIP = gmCmdDict.get(GMCommon.Def_GMKey_IP, '')
|
|
if loginIP != '':
|
return GMCommon.Def_SendToGameServer, ''
|
|
# »Ø¸´
|
return GMCommon.Def_ParamErr, ''
|
|
|
## ²éѯlogdb·µ»Ø
|
# @param logdb:logdb
|
# @param data:´«ÈëµÄÐÅÏ¢
|
# @param gmCmdDict:gmÃüÁî×Öµä
|
# @return None
|
def LogDBResponse(logdb, data, gmCmdDict):
|
loginIP = gmCmdDict.get(GMCommon.Def_GMKey_IP, '')
|
|
if loginIP != '':
|
return GMCommon.Def_SendToGameServer, ''
|
|
# »Ø¸´
|
return GMCommon.Def_ParamErr, ''
|
|
|
## ²éѯuserdb·µ»Ø
|
# @param userdb:userdb
|
# @param data:´«ÈëµÄÐÅÏ¢
|
# @param gmCmdDict:gmÃüÁî×Öµä
|
# @return None
|
def UserDBResponse(userdb, data, gmCmdDict):
|
loginIP = gmCmdDict.get(GMCommon.Def_GMKey_IP, '')
|
|
if loginIP != '':
|
return GMCommon.Def_SendToGameServer, ''
|
|
# »Ø¸´
|
return GMCommon.Def_ParamErr, ''
|
|