From 01a0e539b786ae0f1c46646874502367f5410aca Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 04 二月 2026 18:18:51 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(优化游戏服及跨服启动、通讯逻辑;服务器类型增加跨服中心、跨服事件、时间管理;跨服玩家在线状态、基础信息、玩家资源增减管理、发送跨服个人邮件等;跨服公会初版,修复公会成员审核、成员战力刷新等bug,增加公会名次同步;跨服公会暂未测试;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.py
index 3b75530..01b19ca 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/PyMongoDB/GMToolLogicProcess/GMToolPyInterface.py
+++ b/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)

--
Gitblit v1.8.0