From 66752eeaf958b1c1dc381117b2954d2ae5f2de2f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 03 九月 2021 17:18:45 +0800
Subject: [PATCH] 5217 【主干】【gt_1.101.1】【BT3】【bt3_1.100.1】退出跨服看不到npc(回本服收到A108时强制关开刷视野)
---
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