From 41c7b27b6ce4d57a1fc0f281d8323956599cceef Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 06 十二月 2023 10:13:15 +0800
Subject: [PATCH] 9811 【BT9】【后端】逐鹿万界(结算同步玩家信息改为字典)
---
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