ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py
@@ -100,29 +100,23 @@
    loadOK = dbPlayer.adoLoadCEx(collection, {'AccID':fix_incomingText(playerAccID),
                                                  'IsDeleted':dbPlayer.IsDeleted}) 
    # 加入人物信息
    resultMsg = {}
    if loadOK:
        resultMsg = {
                      'LogoffTime':dbPlayer.LogoffTime, #离线时间
                      'LoginTime':dbPlayer.LoginTime,  # 上线时间
                      'OnlineTime':dbPlayer.OnlineTime,  # 累计上线时间
                      'LoginIP':dbPlayer.LoginIP,  #登入IP
                    }
    else:
        return GMCommon.Def_NoTag, ''
    if not loadOK:
        return GMCommon.Def_NoTag, ""
        
    # 获得玩家物品
    itemCollection = userdb[UCN_RoleItem]
    itemFind = itemCollection.find({'PlayerID':dbPlayer.PlayerID})
    
    itemList = []
    # 无物品
    if itemFind.count() <= 0:
        return GMCommon.Def_Success, resultMsg
        return GMCommon.Def_Success, itemList
    
    itemList = []
    itemInfo = itemFind[0]
    packIndex = GMCommon.ToIntDef(gmCmdDict.get(GMCommon.Def_GMKey_PackIndex, ''))
    if packIndex == ShowAllPack:
        # 暂不提供查询所有的物品
        return GMCommon.Def_ParamErr, "Not allowed to query all package items."
    # 遍历所有物品
    for itemIndex in range(1, itemInfo['Count'] + 1):        
        itemDict = itemInfo.get('%s'%itemIndex, {})
@@ -131,9 +125,8 @@
            continue
        
        itemList.append(_GetItemInfo(itemDict))
    resultMsg['ItemList'] = itemList
    resultMsg = {"PackIndex":packIndex, "ItemList":itemList}
    # 不大与word
    if len(resultMsg) > pow(2, 14):
        return GMCommon.Def_MaxLimit, ''
@@ -146,17 +139,31 @@
# @param itemDict: 物品信息字典
# @return curItemInfo:当前物品显示信息
def _GetItemInfo(itemDict):
#    "ItemGUID" : "096389AD-904F-4DAA-B7ED155B8663CE45",
#    "ItemTypeID" : NumberLong(3901),
#    "Count" : 100,
#    "IsBind" : 0,
#    "UserData" : "{}",
#    "IsSuite" : 0,
#    "RemainHour" : 0,
#    "GearScore" : NumberLong(0),
#    "CreateTime" : "2019-10-16 20:12:17"
    
    #itemData = eval(itemDict['UserData'])
    curItemInfo = {
                'PackType':itemDict['ItemPlaceType'],  # 背包类型
                'ItemIndex':itemDict['ItemPlaceIndex'],   # 索引
                'GUID':itemDict['ItemGUID'],   # guid
                'IsBand':itemDict['IsBind'],  # 是否绑定
                'ItemCnt':itemDict['Count'],   # 数量
                'ItemID':itemDict['ItemTypeID'],
                'IsSuite':itemDict['IsSuite'],  # 是否套装
                }
#    "ItemPlaceIndex" : 1,
#    "PlayerID" : NumberLong(268902),
#    "ItemPlaceType" : 2,
#    "UserDataLen" : NumberLong(2),
#    "IsLocked" : 0,
#    "SID" : -1135840175,
#    "VerNO" : NumberLong(1),
    curItemInfo = {}
    for k, v in itemDict.items():
        if k in ["UserDataLen", "ItemPlaceType", "PlayerID", "IsLocked", "SID", "VerNO", "ItemPlaceIndex"]:
            continue
        if not v:
            continue
        curItemInfo[k] = v
    return curItemInfo