8099 【主干】【后端】拍卖行拍品和关注优化(个人流拍拍品在拍品有效期内可重复上架)
| | |
| | | addItemDict['Count'] = GameWorld.ToIntDef(gmCmdDict.get('ItemCnt%s'%itemIndexStr, '0'))
|
| | | if addItemDict['Count'] == 0:
|
| | | return {}
|
| | | addItemDict['IsBind'] = GameWorld.ToIntDef(gmCmdDict.get('IsBind%s'%itemIndexStr, '0'))
|
| | | addItemDict['IsAuctionItem'] = GameWorld.ToIntDef(gmCmdDict.get('IsBind%s'%itemIndexStr, '0'))
|
| | | #添加UserData信息
|
| | | addItemDict['UserData'] = ''
|
| | | UserDataDict = {}
|
| | |
| | | # 流拍返还物品邮件
|
| | | paramList = []
|
| | | detail = {"ItemGUID":itemGUID}
|
| | | addItemList = [{"ItemID":itemID, "Count":itemCount, "IsAuctionItem":False, "UserData":auctionItem.UserData}]
|
| | | addItemList = [{"ItemID":itemID, "Count":itemCount, "IsAuctionItem":True, "UserData":auctionItem.UserData}]
|
| | | PlayerCompensation.SendMailByKey("PaimaiMail4", [playerID], addItemList, paramList, detail=detail)
|
| | |
|
| | | AddAuctionRecord(auctionItem, AuctionRecordResult_SellFail)
|
| | |
| | | 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)
|