From 532b9f45735b9a1b04667afb83b3fe3203d74ffb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 08 六月 2021 11:49:58 +0800
Subject: [PATCH] 8972 【主干】【BT】【BT2】 GM工具增加激活删除称号命令

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py
index dd1e215..39c95b4 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py
@@ -27,7 +27,7 @@
 import IPY_GameServer
 import ReadChConfig
 import base64
-import json
+import cPickle
 
 #[isBase64, gbk]
 EncodingList = ReadChConfig.GetEvalChConfig("EncodingTex")
@@ -153,7 +153,8 @@
     sendDict, callFunc, extendValueList = g_dbCommandList.pop(0)
     
     #0:不返回,1:DB返回信息到GameServer
-    GameWorld.GetGameWorld().SendDBOper(1, json.dumps(sendDict, ensure_ascii=False))
+    sendMsg = cPickle.dumps(sendDict, 2)
+    GameWorld.GetGameWorld().SendDBOper(1, sendMsg, len(sendMsg))
     GameWorld.Log("send dbcommand:%s"%sendDict)
     
     g_proccessCmdInfo = [callFunc, extendValueList]

--
Gitblit v1.8.0