#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package PyMongoDataServer.GMToolLogicProcess.Commands.GMT_CheckOpenServer
|
#
|
# @todo:¼ì²é¿ª·þÏà¹ØÊÇ·ñÕý³£
|
# @author hxp
|
# @date 2024-10-23
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ¼ì²é¿ª·þÏà¹ØÊÇ·ñÕý³£
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2024-10-23 15:00"""
|
#-------------------------------------------------------------------------------
|
|
import GMCommon
|
|
## ÊÕµ½gmÃüÁîÖ´ÐÐ
|
# @param gmCmdDict:gmÃüÁî×Öµä
|
# @return None
|
def OnExec(gmCmdDict):
|
from LogicProcess import (UserCtrlDB,)
|
|
# Ïȼì²é°æ±¾ºÅ
|
checkRet = UserCtrlDB.CheckGameVersion()
|
curVersion, centerVersion = checkRet if checkRet else ("", "")
|
if curVersion == centerVersion:
|
# ÍÆ¸øGameServer½øÒ»²½¼ì²é
|
return GMCommon.Def_SendToGameServer, ''
|
return GMCommon.Def_Unknow, {"errMsg":"VersionError", "curVersion":curVersion, "centerVersion":centerVersion}
|
|