From 18fb739bf374ec5de73f5f7cd8e62f6650cadcec Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 25 十月 2024 14:07:54 +0800 Subject: [PATCH] 10284 【英文】【tqxbqy】获得、扣除代币系统提示除以100 --- 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