hxp
2025-02-28 08ce9f6101fce2f21f59a7726f98dcd8d3b6df69
ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_AddPersonalCompensation.py
@@ -29,6 +29,7 @@
import GMCommon
import uuid
import ChConfig
import ShareDefine
#---------------------------------------------------------------------
@@ -139,6 +140,7 @@
    if addItemDict['Count'] == 0:
        return {}
    addItemDict['IsAuctionItem'] = GameWorld.ToIntDef(gmCmdDict.get('IsBind%s'%itemIndexStr, '0'))
    appointID = GameWorld.ToIntDef(gmCmdDict.get('AppointID%s'%itemIndexStr, '0'))
    #添加UserData信息
    addItemDict['UserData'] = ''
    UserDataDict = {}
@@ -169,6 +171,9 @@
            continue
        itemUserData[key] = value
        
    if appointID:
        itemUserData[ShareDefine.Def_CItemKey_AppointID] = appointID
    if itemUserData:
        addItemDict['UserData'] = '%s'%itemUserData