| | |
| | | if isAuctionItem:
|
| | | hasAuctionItem = True
|
| | |
|
| | | GameWorld.DebugLog(" needPackSpaceDict=%s" % str(needPackSpaceDict))
|
| | | GameWorld.DebugLog(" hasAuctionItem=%s,needPackSpaceDict=%s" % (hasAuctionItem, needPackSpaceDict))
|
| | | for packType, needSpace in needPackSpaceDict.items():
|
| | | if needSpace > ItemCommon.GetItemPackSpace(curPlayer, packType, needSpace):
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [packType])
|
| | |
| | | continue
|
| | |
|
| | | ##UserData包含了追加属性不完整,这里需要补齐
|
| | | userDataCreateTime = 0
|
| | | if curPackItem.UserDataLen:
|
| | | UserDataDict = eval(curPackItem.UserData)
|
| | | #设置UserData
|
| | | UserData = "%s"%UserDataDict
|
| | | curCreateItem.SetUserData(UserData, len(UserData))
|
| | | userDataCreateTime = curCreateItem.GetUserAttr(ShareDefine.Def_IudetAuctionItemCreateTime)
|
| | |
|
| | | if isAuctionItem and auctionItemCreateTime:
|
| | | if isAuctionItem and auctionItemCreateTime and not userDataCreateTime:
|
| | | curCreateItem.SetUserAttr(ShareDefine.Def_IudetAuctionItemCreateTime, auctionItemCreateTime)
|
| | |
|
| | | ItemCommon.MakeEquipGS(curCreateItem)
|