From e80aa0f81f59070d748e1a20410805f0a87bd381 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 14 十二月 2025 17:34:07 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(关银屏所有技能;增加触发类型44-敌军行动后 45-友军行动后;增加效果6022 6023 6024)
---
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