hxp
6 天以前 acebf38b40565a700efeecddb2e3f6e2b2e183a6
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.py
@@ -9,6 +9,7 @@
from DBCommon import CommonDefine
import NetPackCommon
from Commands import GMCommon
DBConfig = __import__('Config.DBConfig')
import json
################################################################## 
                ####### 提供的接口 ######
@@ -16,10 +17,10 @@
    
#回复给ServersRoute->GM工具 命令执行结果包
def SendToGMToolCommandResult(orderID, resultMsg, UserData = ''):
    # if isinstance(Result, unicode):
    #     #直接从数据库未进行转化的话是unicode
    #     Result = Result.encode('gbk')
    if isinstance(resultMsg, unicode):
        #直接从数据库未进行转化的话是unicode
        resultMsg = resultMsg.encode(DBConfig.encoding)
    recvPack = SendPackProtocol.tagGMCommandResult()
    recvPack.Type = CommonDefine.gstGMToolCommandResult 
    recvPack.OrderLen = len(orderID)