From 2cf69f0d864fc57a76321abadfbc68e97c840547 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 15 十月 2024 17:03:11 +0800
Subject: [PATCH] 5328 【越南】【英文】【砍树】神兽装备格子拓展(扩展为150格)
---
ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py
index e2f6074..5b5a96d 100644
--- a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py
+++ b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py
@@ -126,11 +126,12 @@
itemList.append(_GetItemInfo(itemDict))
- resultMsg = {"PackIndex":packIndex, "ItemList":itemList}
+ totalItemCount = len(itemList)
+ resultMsg = {"PackIndex":packIndex, "TotalItemCount":totalItemCount, "ItemList":itemList}
# 不大与word
- if len(resultMsg) > pow(2, 14):
+ if len(str(resultMsg)) > 65000:
return GMCommon.Def_MaxLimit, ''
-
+
# 回复查询信息
return GMCommon.Def_Success, resultMsg
@@ -161,7 +162,7 @@
for k, v in itemDict.items():
if k in ["UserDataLen", "ItemPlaceType", "PlayerID", "IsLocked", "SID", "VerNO"]:
continue
- if not v:
+ if not v or v == "{}":
continue
curItemInfo[k] = v
--
Gitblit v1.8.0