From 027dccfa5c57091f7d1787af3e6c7b26c8c0f9a3 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 十二月 2019 15:46:52 +0800
Subject: [PATCH] 8346 【恺英】【后端】协助系统(玩家看到boss才同步伤血封包;修复玩家PK时buff掉血添加npc伤血列表报错)

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

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py
index 8e4f768..39c95b4 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDBOper.py
@@ -27,6 +27,7 @@
 import IPY_GameServer
 import ReadChConfig
 import base64
+import cPickle
 
 #[isBase64, gbk]
 EncodingList = ReadChConfig.GetEvalChConfig("EncodingTex")
@@ -152,7 +153,8 @@
     sendDict, callFunc, extendValueList = g_dbCommandList.pop(0)
     
     #0:不返回,1:DB返回信息到GameServer
-    GameWorld.GetGameWorld().SendDBOper(1, str(sendDict))
+    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