| | |
| | | totalItemList = []
|
| | | if itemID:
|
| | | totalItemList.append([itemID, itemCount * clientBuyCount, isBind])
|
| | | for itemIDEx, itemCountEx, isBindEx in itemListEx:
|
| | | for itemEx in itemListEx:
|
| | | itemIDEx, itemCountEx = itemEx[:2]
|
| | | isBindEx = itemEx[2] if len(itemEx) > 2 else 0
|
| | | totalItemList.append([itemIDEx, itemCountEx * clientBuyCount, isBindEx])
|
| | | if not totalItemList:
|
| | | GameWorld.ErrLog("Store shop item error! shopType=%s,shopID=%s" % (shopType, shopID), curPlayer.GetPlayerID())
|
| | |
| | |
|
| | | GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_ShopRandUnlock, shopID, 1)
|
| | | if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ShopBuyCnt % shopID):
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ShopBuyCnt % shopID, 0)
|
| | | syncBuyCntIDList.append(shopID)
|
| | |
|
| | | GameWorld.DebugLog("随机刷新商品数: %s,%s" % (len(randShopIDList), randShopIDList))
|